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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #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 void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(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_negEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #3

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt11print_otherERNS_11scfx_stringERKNS_8scfx_repENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(37) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #4 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.sc_dt::scfx_rep", align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !11
  store i32 %4, ptr %11, align 4, !tbaa !13
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %13, ptr noundef nonnull align 8 dereferenceable(37) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %28 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %28, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 18
  br i1 %30, label %37, label %31

31:                                               ; preds = %6
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 20
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 22
  br label %37

37:                                               ; preds = %34, %31, %6
  %38 = phi i1 [ true, %31 ], [ true, %6 ], [ %36, %34 ]
  %39 = zext i1 %38 to i8
  store i8 %39, ptr %15, align 1, !tbaa !15
  %40 = load i8, ptr %15, align 1, !tbaa !15, !range !17, !noundef !18
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %63

42:                                               ; preds = %37
  %43 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
          to label %44 unwind label %52

44:                                               ; preds = %42
  br i1 %43, label %45, label %56

45:                                               ; preds = %44
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %46, i8 noundef signext 45)
          to label %47 unwind label %52

47:                                               ; preds = %45
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = invoke noundef ptr @_ZN5sc_dt12neg_scfx_repERKNS_8scfx_repE(ptr noundef nonnull align 8 dereferenceable(37) %48)
          to label %50 unwind label %52

50:                                               ; preds = %47
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %13, ptr noundef nonnull align 8 dereferenceable(37) %49)
          to label %51 unwind label %52

51:                                               ; preds = %50
  br label %56

52:                                               ; preds = %66, %50, %47, %45, %42
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %16, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %17, align 4
  br label %426

56:                                               ; preds = %51, %44
  %57 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %57, label %61 [
    i32 18, label %58
    i32 20, label %59
    i32 22, label %60
  ]

58:                                               ; preds = %56
  store i32 17, ptr %14, align 4, !tbaa !9
  br label %62

59:                                               ; preds = %56
  store i32 19, ptr %14, align 4, !tbaa !9
  br label %62

60:                                               ; preds = %56
  store i32 21, ptr %14, align 4, !tbaa !9
  br label %62

61:                                               ; preds = %56
  br label %62

62:                                               ; preds = %61, %60, %59, %58
  br label %63

63:                                               ; preds = %62, %37
  %64 = load i32, ptr %10, align 4, !tbaa !11
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN5sc_dt17scfx_print_prefixERNS_11scfx_stringENS_9sc_numrepE(ptr noundef nonnull align 8 dereferenceable(24) %67, i32 noundef %68)
          to label %69 unwind label %52

69:                                               ; preds = %66
  br label %70

70:                                               ; preds = %69, %63
  %71 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %71, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %136

74:                                               ; preds = %70
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = invoke noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %75)
          to label %77 unwind label %110

77:                                               ; preds = %74
  %78 = sub nsw i32 %76, 1
  store i32 %78, ptr %18, align 4, !tbaa !11
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = invoke noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %79)
          to label %81 unwind label %110

81:                                               ; preds = %77
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = invoke noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %82)
          to label %84 unwind label %110

84:                                               ; preds = %81
  %85 = sub nsw i32 %80, %83
  store i32 %85, ptr %19, align 4, !tbaa !11
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = invoke noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28) %86)
          to label %88 unwind label %110

88:                                               ; preds = %84
  %89 = icmp eq i32 %87, 0
  br i1 %89, label %90, label %114

90:                                               ; preds = %88
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 17
  br i1 %92, label %99, label %93

93:                                               ; preds = %90
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 19
  br i1 %95, label %99, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = icmp eq i32 %97, 21
  br i1 %98, label %99, label %114

99:                                               ; preds = %96, %93, %90
  %100 = load i8, ptr %15, align 1, !tbaa !15, !range !17, !noundef !18
  %101 = trunc i8 %100 to i1
  br i1 %101, label %114, label %102

102:                                              ; preds = %99
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = invoke noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %103)
          to label %105 unwind label %110

105:                                              ; preds = %102
  %106 = icmp sgt i32 %104, 1
  br i1 %106, label %107, label %114

107:                                              ; preds = %105
  %108 = load i32, ptr %18, align 4, !tbaa !11
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr %18, align 4, !tbaa !11
  br label %135

110:                                              ; preds = %195, %184, %161, %158, %151, %140, %136, %114, %102, %84, %81, %77, %74
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %16, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %17, align 4
  br label %425

114:                                              ; preds = %105, %99, %96, %88
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = invoke noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28) %115)
          to label %117 unwind label %110

117:                                              ; preds = %114
  %118 = icmp eq i32 %116, 1
  br i1 %118, label %119, label %134

119:                                              ; preds = %117
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp eq i32 %120, 2
  br i1 %121, label %131, label %122

122:                                              ; preds = %119
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 8
  br i1 %124, label %131, label %125

125:                                              ; preds = %122
  %126 = load i32, ptr %9, align 4, !tbaa !9
  %127 = icmp eq i32 %126, 16
  br i1 %127, label %131, label %128

128:                                              ; preds = %125
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = icmp eq i32 %129, 23
  br i1 %130, label %131, label %134

131:                                              ; preds = %128, %125, %122, %119
  %132 = load i32, ptr %18, align 4, !tbaa !11
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %18, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %131, %128, %117
  br label %135

135:                                              ; preds = %134, %107
  br label %202

136:                                              ; preds = %70
  %137 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
          to label %138 unwind label %110

138:                                              ; preds = %136
  br i1 %137, label %139, label %140

139:                                              ; preds = %138
  store i32 0, ptr %18, align 4, !tbaa !11
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %201

140:                                              ; preds = %138
  %141 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 4
  %142 = load i32, ptr %141, align 4, !tbaa !19
  %143 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 1
  %144 = load i32, ptr %143, align 8, !tbaa !23
  %145 = sub nsw i32 %142, %144
  %146 = mul nsw i32 %145, 32
  %147 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 0
  %148 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 4
  %149 = load i32, ptr %148, align 4, !tbaa !19
  %150 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %147, i32 noundef %149)
          to label %151 unwind label %110

151:                                              ; preds = %140
  %152 = load i32, ptr %150, align 4, !tbaa !11
  %153 = zext i32 %152 to i64
  %154 = invoke noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %153)
          to label %155 unwind label %110

155:                                              ; preds = %151
  %156 = add nsw i32 %146, %154
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %18, align 4, !tbaa !11
  br label %158

158:                                              ; preds = %169, %155
  %159 = load i32, ptr %18, align 4, !tbaa !11
  %160 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7get_bitEi(ptr noundef nonnull align 8 dereferenceable(37) %13, i32 noundef %159)
          to label %161 unwind label %110

161:                                              ; preds = %158
  %162 = zext i1 %160 to i32
  %163 = load i32, ptr %18, align 4, !tbaa !11
  %164 = sub nsw i32 %163, 1
  %165 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7get_bitEi(ptr noundef nonnull align 8 dereferenceable(37) %13, i32 noundef %164)
          to label %166 unwind label %110

166:                                              ; preds = %161
  %167 = zext i1 %165 to i32
  %168 = icmp eq i32 %162, %167
  br i1 %168, label %169, label %172

169:                                              ; preds = %166
  %170 = load i32, ptr %18, align 4, !tbaa !11
  %171 = add nsw i32 %170, -1
  store i32 %171, ptr %18, align 4, !tbaa !11
  br label %158, !llvm.loop !24

172:                                              ; preds = %166
  %173 = load i32, ptr %9, align 4, !tbaa !9
  %174 = icmp eq i32 %173, 17
  br i1 %174, label %181, label %175

175:                                              ; preds = %172
  %176 = load i32, ptr %9, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 19
  br i1 %177, label %181, label %178

178:                                              ; preds = %175
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = icmp eq i32 %179, 21
  br i1 %180, label %181, label %184

181:                                              ; preds = %178, %175, %172
  %182 = load i32, ptr %18, align 4, !tbaa !11
  %183 = add nsw i32 %182, -1
  store i32 %183, ptr %18, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %181, %178
  %185 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 5
  %186 = load i32, ptr %185, align 8, !tbaa !26
  %187 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 1
  %188 = load i32, ptr %187, align 8, !tbaa !23
  %189 = sub nsw i32 %186, %188
  %190 = mul nsw i32 %189, 32
  %191 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 0
  %192 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %13, i32 0, i32 5
  %193 = load i32, ptr %192, align 8, !tbaa !26
  %194 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %191, i32 noundef %193)
          to label %195 unwind label %110

195:                                              ; preds = %184
  %196 = load i32, ptr %194, align 4, !tbaa !11
  %197 = zext i32 %196 to i64
  %198 = invoke noundef i32 @_ZN5sc_dt13scfx_find_lsbEm(i64 noundef %197)
          to label %199 unwind label %110

199:                                              ; preds = %195
  %200 = add nsw i32 %190, %198
  store i32 %200, ptr %19, align 4, !tbaa !11
  br label %201

201:                                              ; preds = %199, %139
  br label %202

202:                                              ; preds = %201, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %203 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %203, label %207 [
    i32 2, label %204
    i32 17, label %204
    i32 23, label %204
    i32 8, label %205
    i32 19, label %205
    i32 16, label %206
    i32 21, label %206
  ]

204:                                              ; preds = %202, %202, %202
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %208

205:                                              ; preds = %202, %202
  store i32 3, ptr %20, align 4, !tbaa !11
  br label %208

206:                                              ; preds = %202, %202
  store i32 4, ptr %20, align 4, !tbaa !11
  br label %208

207:                                              ; preds = %202
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %208

208:                                              ; preds = %207, %206, %205, %204
  %209 = load i32, ptr %18, align 4, !tbaa !11
  %210 = add nsw i32 %209, 1
  %211 = sitofp i32 %210 to double
  %212 = load i32, ptr %20, align 4, !tbaa !11
  %213 = sitofp i32 %212 to double
  %214 = fdiv double %211, %213
  %215 = call double @llvm.ceil.f64(double %214)
  %216 = fptosi double %215 to i32
  %217 = load i32, ptr %20, align 4, !tbaa !11
  %218 = mul nsw i32 %216, %217
  %219 = sub nsw i32 %218, 1
  store i32 %219, ptr %18, align 4, !tbaa !11
  %220 = load i32, ptr %19, align 4, !tbaa !11
  %221 = sitofp i32 %220 to double
  %222 = load i32, ptr %20, align 4, !tbaa !11
  %223 = sitofp i32 %222 to double
  %224 = fdiv double %221, %223
  %225 = call double @llvm.floor.f64(double %224)
  %226 = fptosi double %225 to i32
  %227 = load i32, ptr %20, align 4, !tbaa !11
  %228 = mul nsw i32 %226, %227
  store i32 %228, ptr %19, align 4, !tbaa !11
  %229 = load i32, ptr %18, align 4, !tbaa !11
  %230 = icmp slt i32 %229, 0
  br i1 %230, label %231, label %289

231:                                              ; preds = %208
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %232, i8 noundef signext 46)
          to label %233 unwind label %254

233:                                              ; preds = %231
  %234 = load i32, ptr %11, align 4, !tbaa !13
  %235 = icmp eq i32 %234, 0
  br i1 %235, label %236, label %288

236:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %237 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
          to label %238 unwind label %258

238:                                              ; preds = %236
  br i1 %237, label %239, label %243

239:                                              ; preds = %238
  %240 = load i32, ptr %20, align 4, !tbaa !11
  %241 = shl i32 1, %240
  %242 = sub nsw i32 %241, 1
  br label %244

243:                                              ; preds = %238
  br label %244

244:                                              ; preds = %243, %239
  %245 = phi i32 [ %242, %239 ], [ 0, %243 ]
  store i32 %245, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %246 = load i32, ptr %18, align 4, !tbaa !11
  %247 = add nsw i32 %246, 1
  %248 = load i32, ptr %20, align 4, !tbaa !11
  %249 = sdiv i32 %247, %248
  store i32 %249, ptr %22, align 4, !tbaa !11
  br label %250

250:                                              ; preds = %283, %244
  %251 = load i32, ptr %22, align 4, !tbaa !11
  %252 = icmp slt i32 %251, 0
  br i1 %252, label %262, label %253

253:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %286

254:                                              ; preds = %231
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %16, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %17, align 4
  br label %424

258:                                              ; preds = %236
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %16, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %17, align 4
  br label %287

262:                                              ; preds = %250
  %263 = load i32, ptr %21, align 4, !tbaa !11
  %264 = icmp slt i32 %263, 10
  br i1 %264, label %265, label %275

265:                                              ; preds = %262
  %266 = load i32, ptr %21, align 4, !tbaa !11
  %267 = add nsw i32 %266, 48
  %268 = trunc i32 %267 to i8
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %269, i8 noundef signext %268)
          to label %270 unwind label %271

270:                                              ; preds = %265
  br label %282

271:                                              ; preds = %275, %265
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %16, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %287

275:                                              ; preds = %262
  %276 = load i32, ptr %21, align 4, !tbaa !11
  %277 = add nsw i32 %276, 97
  %278 = sub nsw i32 %277, 10
  %279 = trunc i32 %278 to i8
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %280, i8 noundef signext %279)
          to label %281 unwind label %271

281:                                              ; preds = %275
  br label %282

282:                                              ; preds = %281, %270
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %22, align 4, !tbaa !11
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %22, align 4, !tbaa !11
  br label %250, !llvm.loop !27

286:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %288

287:                                              ; preds = %271, %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %424

288:                                              ; preds = %286, %233
  br label %289

289:                                              ; preds = %288, %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %290 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %290, ptr %23, align 4, !tbaa !11
  br label %291

291:                                              ; preds = %346, %289
  %292 = load i32, ptr %23, align 4, !tbaa !11
  %293 = load i32, ptr %19, align 4, !tbaa !11
  %294 = icmp sge i32 %292, %293
  br i1 %294, label %295, label %348

295:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %296 = load i32, ptr %20, align 4, !tbaa !11
  %297 = sub nsw i32 %296, 1
  store i32 %297, ptr %25, align 4, !tbaa !11
  br label %298

298:                                              ; preds = %313, %295
  %299 = load i32, ptr %25, align 4, !tbaa !11
  %300 = icmp sge i32 %299, 0
  br i1 %300, label %302, label %301

301:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %320

302:                                              ; preds = %298
  %303 = load i32, ptr %23, align 4, !tbaa !11
  %304 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7get_bitEi(ptr noundef nonnull align 8 dereferenceable(37) %13, i32 noundef %303)
          to label %305 unwind label %316

305:                                              ; preds = %302
  %306 = zext i1 %304 to i32
  %307 = load i32, ptr %25, align 4, !tbaa !11
  %308 = shl i32 %306, %307
  %309 = load i32, ptr %24, align 4, !tbaa !11
  %310 = add nsw i32 %309, %308
  store i32 %310, ptr %24, align 4, !tbaa !11
  %311 = load i32, ptr %23, align 4, !tbaa !11
  %312 = add nsw i32 %311, -1
  store i32 %312, ptr %23, align 4, !tbaa !11
  br label %313

313:                                              ; preds = %305
  %314 = load i32, ptr %25, align 4, !tbaa !11
  %315 = add nsw i32 %314, -1
  store i32 %315, ptr %25, align 4, !tbaa !11
  br label %298, !llvm.loop !28

316:                                              ; preds = %302
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %16, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %347

320:                                              ; preds = %301
  %321 = load i32, ptr %24, align 4, !tbaa !11
  %322 = icmp slt i32 %321, 10
  br i1 %322, label %323, label %333

323:                                              ; preds = %320
  %324 = load i32, ptr %24, align 4, !tbaa !11
  %325 = add nsw i32 %324, 48
  %326 = trunc i32 %325 to i8
  %327 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %327, i8 noundef signext %326)
          to label %328 unwind label %329

328:                                              ; preds = %323
  br label %340

329:                                              ; preds = %343, %333, %323
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %16, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %17, align 4
  br label %347

333:                                              ; preds = %320
  %334 = load i32, ptr %24, align 4, !tbaa !11
  %335 = add nsw i32 %334, 97
  %336 = sub nsw i32 %335, 10
  %337 = trunc i32 %336 to i8
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %338, i8 noundef signext %337)
          to label %339 unwind label %329

339:                                              ; preds = %333
  br label %340

340:                                              ; preds = %339, %328
  %341 = load i32, ptr %23, align 4, !tbaa !11
  %342 = icmp eq i32 %341, -1
  br i1 %342, label %343, label %346

343:                                              ; preds = %340
  %344 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %344, i8 noundef signext 46)
          to label %345 unwind label %329

345:                                              ; preds = %343
  br label %346

346:                                              ; preds = %345, %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %291, !llvm.loop !29

347:                                              ; preds = %329, %316
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %423

348:                                              ; preds = %291
  %349 = load i32, ptr %19, align 4, !tbaa !11
  %350 = icmp sgt i32 %349, 0
  br i1 %350, label %351, label %373

351:                                              ; preds = %348
  %352 = load i32, ptr %11, align 4, !tbaa !13
  %353 = icmp eq i32 %352, 0
  br i1 %353, label %354, label %373

354:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %355 = load i32, ptr %19, align 4, !tbaa !11
  %356 = load i32, ptr %20, align 4, !tbaa !11
  %357 = sdiv i32 %355, %356
  store i32 %357, ptr %26, align 4, !tbaa !11
  br label %358

358:                                              ; preds = %365, %354
  %359 = load i32, ptr %26, align 4, !tbaa !11
  %360 = icmp sgt i32 %359, 0
  br i1 %360, label %362, label %361

361:                                              ; preds = %358
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %372

362:                                              ; preds = %358
  %363 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %363, i8 noundef signext 48)
          to label %364 unwind label %368

364:                                              ; preds = %362
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %26, align 4, !tbaa !11
  %367 = add nsw i32 %366, -1
  store i32 %367, ptr %26, align 4, !tbaa !11
  br label %358, !llvm.loop !30

368:                                              ; preds = %362
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %16, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %423

372:                                              ; preds = %361
  br label %373

373:                                              ; preds = %372, %351, %348
  %374 = load ptr, ptr %7, align 8, !tbaa !5
  %375 = load ptr, ptr %7, align 8, !tbaa !5
  %376 = invoke noundef i32 @_ZNK5sc_dt11scfx_string6lengthEv(ptr noundef nonnull align 8 dereferenceable(24) %375)
          to label %377 unwind label %387

377:                                              ; preds = %373
  %378 = sub nsw i32 %376, 1
  %379 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5sc_dt11scfx_stringixEi(ptr noundef nonnull align 8 dereferenceable(24) %374, i32 noundef %378)
          to label %380 unwind label %387

380:                                              ; preds = %377
  %381 = load i8, ptr %379, align 1, !tbaa !31
  %382 = sext i8 %381 to i32
  %383 = icmp eq i32 %382, 46
  br i1 %383, label %384, label %391

384:                                              ; preds = %380
  %385 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_string7discardEi(ptr noundef nonnull align 8 dereferenceable(24) %385, i32 noundef 1)
          to label %386 unwind label %387

386:                                              ; preds = %384
  br label %391

387:                                              ; preds = %418, %407, %397, %384, %377, %373
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %16, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %17, align 4
  br label %423

391:                                              ; preds = %386, %380
  %392 = load i32, ptr %11, align 4, !tbaa !13
  %393 = icmp ne i32 %392, 0
  br i1 %393, label %394, label %415

394:                                              ; preds = %391
  %395 = load i32, ptr %18, align 4, !tbaa !11
  %396 = icmp slt i32 %395, 0
  br i1 %396, label %397, label %404

397:                                              ; preds = %394
  %398 = load ptr, ptr %7, align 8, !tbaa !5
  %399 = load i32, ptr %18, align 4, !tbaa !11
  %400 = add nsw i32 %399, 1
  %401 = load i32, ptr %20, align 4, !tbaa !11
  %402 = sdiv i32 %400, %401
  invoke void @_ZN5sc_dt14scfx_print_expERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %398, i32 noundef %402)
          to label %403 unwind label %387

403:                                              ; preds = %397
  br label %414

404:                                              ; preds = %394
  %405 = load i32, ptr %19, align 4, !tbaa !11
  %406 = icmp sgt i32 %405, 0
  br i1 %406, label %407, label %413

407:                                              ; preds = %404
  %408 = load ptr, ptr %7, align 8, !tbaa !5
  %409 = load i32, ptr %19, align 4, !tbaa !11
  %410 = load i32, ptr %20, align 4, !tbaa !11
  %411 = sdiv i32 %409, %410
  invoke void @_ZN5sc_dt14scfx_print_expERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %408, i32 noundef %411)
          to label %412 unwind label %387

412:                                              ; preds = %407
  br label %413

413:                                              ; preds = %412, %404
  br label %414

414:                                              ; preds = %413, %403
  br label %415

415:                                              ; preds = %414, %391
  %416 = load i32, ptr %9, align 4, !tbaa !9
  %417 = icmp eq i32 %416, 23
  br i1 %417, label %418, label %422

418:                                              ; preds = %415
  %419 = load ptr, ptr %7, align 8, !tbaa !5
  %420 = load i32, ptr %10, align 4, !tbaa !11
  invoke void @_ZN5sc_dt11scfx_tc2csdERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %419, i32 noundef %420)
          to label %421 unwind label %387

421:                                              ; preds = %418
  br label %422

422:                                              ; preds = %421, %415
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  ret void

423:                                              ; preds = %387, %368, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %424

424:                                              ; preds = %423, %287, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %425

425:                                              ; preds = %424, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %426

426:                                              ; preds = %425, %52
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  br label %427

427:                                              ; preds = %426
  %428 = load ptr, ptr %16, align 8
  %429 = load i32, ptr %17, align 4
  %430 = insertvalue { ptr, i32 } poison, ptr %428, 0
  %431 = insertvalue { ptr, i32 } %430, i32 %429, 1
  resume { ptr, i32 } %431
}

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

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

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

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

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

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

declare void @_ZN5sc_dt11scfx_tc2csdERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #5

declare void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr, ptr)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"_ZTSN5sc_dt9sc_numrepE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN5sc_dt6sc_fmtE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !12, i64 28}
!20 = !{!"_ZTSN5sc_dt8scfx_repE", !21, i64 0, !12, i64 16, !12, i64 20, !22, i64 24, !12, i64 28, !12, i64 32, !16, i64 36}
!21 = !{!"_ZTSN5sc_dt9scfx_mantE", !6, i64 0, !12, i64 8}
!22 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !7, i64 0}
!23 = !{!20, !12, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!20, !12, i64 32}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = !{!7, !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_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] }>

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) 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 void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext) local_unnamed_addr #2 align 2

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

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

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

; 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 #2 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 #0 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #3

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt11print_otherERNS_11scfx_stringERKNS_8scfx_repENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(37) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.sc_dt::scfx_rep", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %7, ptr noundef nonnull align 8 dereferenceable(37) %1)
  switch i32 %2, label %switch.edge [
    i32 20, label %8
    i32 18, label %8
    i32 22, label %8
  ]

8:                                                ; preds = %6, %6, %6
  %9 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %7)
  br i1 %9, label %10, label %16

10:                                               ; preds = %8
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 45)
          to label %11 unwind label %14

11:                                               ; preds = %10
  %12 = invoke noundef ptr @_ZN5sc_dt12neg_scfx_repERKNS_8scfx_repE(ptr noundef nonnull align 8 dereferenceable(37) %1)
          to label %13 unwind label %14

13:                                               ; preds = %11
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %7, ptr noundef nonnull align 8 dereferenceable(37) %12)
          to label %16 unwind label %14

14:                                               ; preds = %21, %13, %11, %10
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

16:                                               ; preds = %13, %8
  switch i32 %2, label %switch.edge [
    i32 18, label %17
    i32 20, label %18
    i32 22, label %19
  ]

17:                                               ; preds = %16
  br label %switch.edge

18:                                               ; preds = %16
  br label %switch.edge

19:                                               ; preds = %16
  br label %switch.edge

switch.edge:                                      ; preds = %6, %17, %18, %19, %16
  %20 = phi i1 [ true, %16 ], [ true, %19 ], [ true, %18 ], [ true, %17 ], [ false, %6 ]
  %.0130 = phi i32 [ %2, %16 ], [ 21, %19 ], [ 19, %18 ], [ 17, %17 ], [ %2, %6 ]
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %22, label %21

21:                                               ; preds = %switch.edge
  invoke void @_ZN5sc_dt17scfx_print_prefixERNS_11scfx_stringENS_9sc_numrepE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %2)
          to label %22 unwind label %14

22:                                               ; preds = %21, %switch.edge
  %.not136 = icmp eq ptr %5, null
  br i1 %.not136, label %47, label %23

23:                                               ; preds = %22
  %24 = invoke noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %23
  %26 = add nsw i32 %24, -1
  %27 = invoke noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %25
  %29 = invoke noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
          to label %30 unwind label %.loopexit.split-lp

30:                                               ; preds = %28
  %31 = sub nsw i32 %27, %29
  %32 = call noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %42

34:                                               ; preds = %30
  switch i32 %.0130, label %42 [
    i32 21, label %35
    i32 19, label %35
    i32 17, label %35
  ]

35:                                               ; preds = %34, %34, %34
  br i1 %20, label %42, label %36

36:                                               ; preds = %35
  %37 = invoke noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
          to label %38 unwind label %.loopexit.split-lp

38:                                               ; preds = %36
  %39 = icmp sgt i32 %37, 1
  br i1 %39, label %40, label %42

40:                                               ; preds = %38
  %41 = add nsw i32 %24, -2
  br label %83

.loopexit147:                                     ; preds = %63, %65
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.split162

.loopexit.split-lp:                               ; preds = %23, %25, %28, %36, %47
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.split162

42:                                               ; preds = %34, %38, %35, %30
  %43 = call noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %83

45:                                               ; preds = %42
  switch i32 %.0130, label %83 [
    i32 23, label %46
    i32 16, label %46
    i32 8, label %46
    i32 2, label %46
  ]

46:                                               ; preds = %45, %45, %45, %45
  br label %83

47:                                               ; preds = %22
  %48 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %7)
          to label %49 unwind label %.loopexit.split-lp

49:                                               ; preds = %47
  br i1 %48, label %83, label %50

50:                                               ; preds = %49
  %51 = getelementptr inbounds i8, ptr %7, i64 28
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %7, i64 16
  %54 = load i32, ptr %53, align 8, !tbaa !14
  %55 = sub nsw i32 %52, %54
  %56 = shl nsw i32 %55, 5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %52)
  %58 = load i32, ptr %57, align 4, !tbaa !15
  %59 = zext i32 %58 to i64
  %60 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %59)
  %61 = or disjoint i32 %56, 1
  %62 = add i32 %61, %60
  br label %63

63:                                               ; preds = %68, %50
  %.0120 = phi i32 [ %62, %50 ], [ %66, %68 ]
  %64 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7get_bitEi(ptr noundef nonnull align 8 dereferenceable(37) %7, i32 noundef %.0120)
          to label %65 unwind label %.loopexit147

65:                                               ; preds = %63
  %66 = add nsw i32 %.0120, -1
  %67 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7get_bitEi(ptr noundef nonnull align 8 dereferenceable(37) %7, i32 noundef %66)
          to label %68 unwind label %.loopexit147

68:                                               ; preds = %65
  %69 = xor i1 %64, %67
  br i1 %69, label %70, label %63, !llvm.loop !16

70:                                               ; preds = %68
  switch i32 %.0130, label %72 [
    i32 21, label %71
    i32 19, label %71
    i32 17, label %71
  ]

71:                                               ; preds = %70, %70, %70
  br label %72

72:                                               ; preds = %70, %71
  %.1121 = phi i32 [ %66, %71 ], [ %.0120, %70 ]
  %73 = getelementptr inbounds i8, ptr %7, i64 32
  %74 = load i32, ptr %73, align 8, !tbaa !18
  %75 = load i32, ptr %53, align 8, !tbaa !14
  %76 = sub nsw i32 %74, %75
  %77 = shl nsw i32 %76, 5
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %74)
  %79 = load i32, ptr %78, align 4, !tbaa !15
  %80 = zext i32 %79 to i64
  %81 = call noundef i32 @_ZN5sc_dt13scfx_find_lsbEm(i64 noundef %80)
  %82 = add nsw i32 %81, %77
  br label %83

83:                                               ; preds = %49, %45, %72, %40, %46, %42
  %.2 = phi i32 [ %24, %46 ], [ %26, %45 ], [ %26, %42 ], [ %41, %40 ], [ %.1121, %72 ], [ 0, %49 ]
  %.0119 = phi i32 [ %31, %46 ], [ %31, %45 ], [ %31, %42 ], [ %31, %40 ], [ %82, %72 ], [ 0, %49 ]
  switch i32 %.0130, label %86 [
    i32 2, label %87
    i32 17, label %87
    i32 23, label %87
    i32 8, label %84
    i32 19, label %84
    i32 16, label %85
    i32 21, label %85
  ]

84:                                               ; preds = %83, %83
  br label %87

85:                                               ; preds = %83, %83
  br label %87

86:                                               ; preds = %83
  br label %87

87:                                               ; preds = %83, %83, %83, %86, %85, %84
  %88 = phi i1 [ false, %86 ], [ true, %85 ], [ true, %84 ], [ true, %83 ], [ true, %83 ], [ true, %83 ]
  %.0118 = phi i32 [ 0, %86 ], [ 4, %85 ], [ 3, %84 ], [ 1, %83 ], [ 1, %83 ], [ 1, %83 ]
  %89 = add nsw i32 %.2, 1
  %90 = sitofp i32 %89 to double
  %91 = uitofp nneg i32 %.0118 to double
  %92 = fdiv double %90, %91
  %93 = call double @llvm.ceil.f64(double %92)
  %94 = fptosi double %93 to i32
  %.fr = freeze i32 %94
  %95 = mul i32 %.0118, %.fr
  %96 = sitofp i32 %.0119 to double
  %97 = fdiv double %96, %91
  %98 = call double @llvm.floor.f64(double %97)
  %99 = fptosi double %98 to i32
  %100 = mul nsw i32 %.0118, %99
  %101 = icmp slt i32 %95, 1
  br i1 %101, label %102, label %.loopexit146

102:                                              ; preds = %87
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 46)
          to label %103 unwind label %117

103:                                              ; preds = %102
  %104 = icmp eq i32 %4, 0
  br i1 %104, label %105, label %.loopexit146

105:                                              ; preds = %103
  %106 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %7)
  %107 = icmp slt i32 %.fr, 0
  br i1 %107, label %.lr.ph, label %.loopexit146

.lr.ph:                                           ; preds = %105
  %notmask = shl nsw i32 -1, %.0118
  %108 = xor i32 %notmask, -1
  %109 = select i1 %106, i32 %108, i32 0
  %110 = icmp ult i32 %109, 10
  %111 = trunc nuw nsw i32 %109 to i8
  %112 = add nuw nsw i8 %111, 87
  %113 = or disjoint i8 %111, 48
  br i1 %110, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %114
  %.0117151.us = phi i32 [ %115, %114 ], [ %.fr, %.lr.ph ]
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext %113)
          to label %114 unwind label %.split.us

114:                                              ; preds = %.lr.ph.split.us
  %115 = add i32 %.0117151.us, 1
  %exitcond179.not = icmp eq i32 %115, 0
  br i1 %exitcond179.not, label %.loopexit146, label %.lr.ph.split.us, !llvm.loop !19

.split.us:                                        ; preds = %.lr.ph.split.us
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

117:                                              ; preds = %102
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

.lr.ph.split:                                     ; preds = %.lr.ph, %120
  %.0117151 = phi i32 [ %121, %120 ], [ %.fr, %.lr.ph ]
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext %112)
          to label %120 unwind label %.split

.split:                                           ; preds = %.lr.ph.split
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

120:                                              ; preds = %.lr.ph.split
  %121 = add i32 %.0117151, 1
  %exitcond.not = icmp eq i32 %121, 0
  br i1 %exitcond.not, label %.loopexit146, label %.lr.ph.split, !llvm.loop !19

.loopexit146:                                     ; preds = %120, %114, %105, %103, %87
  %.not137158.not = icmp sgt i32 %95, %100
  br i1 %.not137158.not, label %.preheader145.lr.ph, label %._crit_edge160

.preheader145.lr.ph:                              ; preds = %.loopexit146
  br i1 %88, label %.preheader145.us, label %.preheader145.lr.ph.split.split

122:                                              ; preds = %._crit_edge.us
  %123 = icmp eq i32 %.1153.us, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %122
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 46)
          to label %125 unwind label %.split162.us

125:                                              ; preds = %124, %122
  %.not137.us.not = icmp sgt i32 %.1153.us, %100
  br i1 %.not137.us.not, label %.preheader145.us.backedge, label %._crit_edge160

.preheader145.us:                                 ; preds = %.preheader145.lr.ph, %.preheader145.us.backedge
  %.0114155.us.in = phi i32 [ %.0114155.us.in.be, %.preheader145.us.backedge ], [ %.0118, %.preheader145.lr.ph ]
  %.0115154.us = phi i32 [ %.0115154.us.be, %.preheader145.us.backedge ], [ 0, %.preheader145.lr.ph ]
  %.1153.us.in = phi i32 [ %.1153.us, %.preheader145.us.backedge ], [ %95, %.preheader145.lr.ph ]
  %.1153.us = add nsw i32 %.1153.us.in, -1
  %126 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7get_bitEi(ptr noundef nonnull align 8 dereferenceable(37) %7, i32 noundef %.1153.us)
          to label %127 unwind label %.split165.us

127:                                              ; preds = %.preheader145.us
  %.0114155.us = add nsw i32 %.0114155.us.in, -1
  %128 = zext i1 %126 to i32
  %129 = shl nuw nsw i32 %128, %.0114155.us
  %130 = add nuw nsw i32 %129, %.0115154.us
  %131 = icmp sgt i32 %.0114155.us.in, 1
  br i1 %131, label %.preheader145.us.backedge, label %._crit_edge.us

.preheader145.us.backedge:                        ; preds = %127, %125
  %.0114155.us.in.be = phi i32 [ %.0114155.us, %127 ], [ %.0118, %125 ]
  %.0115154.us.be = phi i32 [ %130, %127 ], [ 0, %125 ]
  br label %.preheader145.us, !llvm.loop !20

._crit_edge.us:                                   ; preds = %127
  %132 = icmp ult i32 %130, 10
  %133 = trunc i32 %130 to i8
  %134 = or disjoint i8 %133, 48
  %135 = add i8 %133, 87
  %136 = select i1 %132, i8 %134, i8 %135
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext %136)
          to label %122 unwind label %.split162.us

.split162.us:                                     ; preds = %._crit_edge.us, %124
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

.split165.us:                                     ; preds = %.preheader145.us
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

.preheader145.lr.ph.split.split:                  ; preds = %.preheader145.lr.ph
  %139 = icmp eq i32 %95, 0
  br i1 %139, label %.preheader145.us169, label %.preheader145

.preheader145.us169:                              ; preds = %.preheader145.lr.ph.split.split, %140
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 48)
          to label %140 unwind label %.split162.split.split.us

140:                                              ; preds = %.preheader145.us169
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 46)
          to label %.preheader145.us169 unwind label %.split162.split.split.us

.split162.split.split.us:                         ; preds = %140, %.preheader145.us169
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

.preheader145:                                    ; preds = %.preheader145.lr.ph.split.split, %.preheader145
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 48)
          to label %.preheader145 unwind label %.split162.split.split

.split162.split.split:                            ; preds = %.preheader145
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

._crit_edge160:                                   ; preds = %125, %.loopexit146
  %143 = icmp sgt i32 %100, 0
  %144 = icmp eq i32 %4, 0
  %or.cond17 = and i1 %144, %143
  %145 = icmp sgt i32 %99, 0
  %or.cond = select i1 %or.cond17, i1 %145, i1 false
  br i1 %or.cond, label %.lr.ph172, label %.loopexit

.lr.ph172:                                        ; preds = %._crit_edge160, %146
  %.0171 = phi i32 [ %147, %146 ], [ %99, %._crit_edge160 ]
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 48)
          to label %146 unwind label %149

146:                                              ; preds = %.lr.ph172
  %147 = add nsw i32 %.0171, -1
  %148 = icmp sgt i32 %.0171, 1
  br i1 %148, label %.lr.ph172, label %.loopexit, !llvm.loop !21

149:                                              ; preds = %.lr.ph172
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

.loopexit:                                        ; preds = %146, %._crit_edge160
  %151 = call noundef i32 @_ZNK5sc_dt11scfx_string6lengthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %152 = add nsw i32 %151, -1
  %153 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5sc_dt11scfx_stringixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %152)
          to label %154 unwind label %158

154:                                              ; preds = %.loopexit
  %155 = load i8, ptr %153, align 1, !tbaa !22
  %156 = icmp eq i8 %155, 46
  br i1 %156, label %157, label %160

157:                                              ; preds = %154
  call void @_ZN5sc_dt11scfx_string7discardEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1)
  br label %160

158:                                              ; preds = %.invoke186, %163, %.loopexit
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %.split162

160:                                              ; preds = %157, %154
  %.not192 = xor i1 %144, true
  %brmerge = or i1 %101, %143
  %or.cond193 = and i1 %brmerge, %.not192
  br i1 %or.cond193, label %.invoke186, label %161

.invoke186:                                       ; preds = %160
  %.fr.mux = select i1 %101, i32 %.fr, i32 %99
  invoke void @_ZN5sc_dt14scfx_print_expERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.fr.mux)
          to label %161 unwind label %158

161:                                              ; preds = %.invoke186, %160
  %162 = icmp eq i32 %.0130, 23
  br i1 %162, label %163, label %164

163:                                              ; preds = %161
  invoke void @_ZN5sc_dt11scfx_tc2csdERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %3)
          to label %164 unwind label %158

164:                                              ; preds = %163, %161
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  ret void

.split162:                                        ; preds = %.split162.us, %.split162.split.split, %.split162.split.split.us, %.split, %.split.us, %.loopexit147, %.loopexit.split-lp, %149, %158, %.split165.us, %117, %14
  %.pn141.pn.pn = phi { ptr, i32 } [ %15, %14 ], [ %118, %117 ], [ %150, %149 ], [ %159, %158 ], [ %138, %.split165.us ], [ %lpad.loopexit, %.loopexit147 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %119, %.split ], [ %116, %.split.us ], [ %137, %.split162.us ], [ %142, %.split162.split.split ], [ %141, %.split162.split.split.us ]
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn141.pn.pn
}

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

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

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

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

declare void @_ZN5sc_dt11scfx_tc2csdERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #5

declare void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr, ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 28}
!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 = !{!6, !11, i64 16}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !11, i64 32}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!9, !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass