; 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_pow10" = type { [32 x %"class.sc_dt::scfx_rep"], [32 x %"class.sc_dt::scfx_rep"] }
%"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] }>

@_ZN5sc_dtL8pow10_fxE = external hidden global %"class.sc_dt::scfx_pow10", align 8

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: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37)) #1 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) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext) #1 align 2

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

declare void @_ZN5sc_dt10scfx_pow10clEi(ptr dead_on_unwind writable sret(%"class.sc_dt::scfx_rep") align 8, ptr noundef nonnull align 8 dereferenceable(2560), i32 noundef) #4

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

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

29:                                               ; preds = %4
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %30, i8 noundef signext 45)
  br label %31

31:                                               ; preds = %29, %4
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5sc_dt17scfx_print_prefixERNS_11scfx_stringENS_9sc_numrepE(ptr noundef nonnull align 8 dereferenceable(24) %35, i32 noundef 10)
  br label %36

36:                                               ; preds = %34, %31
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %37)
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %40, i8 noundef signext 48)
  br label %404

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %9, ptr noundef nonnull align 8 dereferenceable(37) %42)
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #7
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(37) %43)
          to label %44 unwind label %67

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %45 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 5
  %46 = load i32, ptr %45, align 8, !tbaa !13
  store i32 %46, ptr %13, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %64, %44
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 4
  %50 = load i32, ptr %49, align 4, !tbaa !18
  %51 = icmp sle i32 %48, %50
  br i1 %51, label %52, label %57

52:                                               ; preds = %47
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !19
  %56 = icmp slt i32 %53, %55
  br label %57

57:                                               ; preds = %52, %47
  %58 = phi i1 [ false, %47 ], [ %56, %52 ]
  br i1 %58, label %59, label %75

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 0
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %60, i32 noundef %61)
          to label %63 unwind label %71

63:                                               ; preds = %59
  store i32 0, ptr %62, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %13, align 4, !tbaa !9
  br label %47, !llvm.loop !20

67:                                               ; preds = %41
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %11, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %12, align 4
  br label %408

71:                                               ; preds = %122, %120, %113, %112, %104, %84, %82, %75, %59
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  br label %407

75:                                               ; preds = %57
  invoke void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %9)
          to label %76 unwind label %71

76:                                               ; preds = %75
  %77 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !19
  %79 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 5
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = icmp slt i32 %78, %80
  br i1 %81, label %82, label %89

82:                                               ; preds = %76
  %83 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %9)
          to label %84 unwind label %71

84:                                               ; preds = %82
  %85 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !19
  %87 = sub nsw i32 %83, %86
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %9, i32 noundef %87, i32 noundef -1)
          to label %88 unwind label %71

88:                                               ; preds = %84
  br label %89

89:                                               ; preds = %88, %76
  %90 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %91 = load i32, ptr %90, align 4, !tbaa !18
  store i32 %91, ptr %13, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %109, %89
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 5
  %95 = load i32, ptr %94, align 8, !tbaa !13
  %96 = icmp sge i32 %93, %95
  br i1 %96, label %97, label %102

97:                                               ; preds = %92
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !19
  %101 = icmp sge i32 %98, %100
  br label %102

102:                                              ; preds = %97, %92
  %103 = phi i1 [ false, %92 ], [ %101, %97 ]
  br i1 %103, label %104, label %112

104:                                              ; preds = %102
  %105 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 0
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %105, i32 noundef %106)
          to label %108 unwind label %71

108:                                              ; preds = %104
  store i32 0, ptr %107, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = add nsw i32 %110, -1
  store i32 %111, ptr %13, align 4, !tbaa !9
  br label %92, !llvm.loop !22

112:                                              ; preds = %102
  invoke void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %113 unwind label %71

113:                                              ; preds = %112
  %114 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %115 = load i32, ptr %114, align 4, !tbaa !18
  %116 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %117 unwind label %71

117:                                              ; preds = %113
  %118 = sub nsw i32 %116, 1
  %119 = icmp eq i32 %115, %118
  br i1 %119, label %120, label %125

120:                                              ; preds = %117
  %121 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %122 unwind label %71

122:                                              ; preds = %120
  %123 = add nsw i32 %121, 1
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %10, i32 noundef %123, i32 noundef 1)
          to label %124 unwind label %71

124:                                              ; preds = %122
  br label %125

125:                                              ; preds = %124, %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  %126 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %9)
          to label %127 unwind label %192

127:                                              ; preds = %125
  br i1 %126, label %239, label %128

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %129 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 4
  %130 = load i32, ptr %129, align 4, !tbaa !18
  %131 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 1
  %132 = load i32, ptr %131, align 8, !tbaa !19
  %133 = sub nsw i32 %130, %132
  %134 = mul nsw i32 %133, 32
  %135 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 0
  %136 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %9, i32 0, i32 4
  %137 = load i32, ptr %136, align 4, !tbaa !18
  %138 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %135, i32 noundef %137)
          to label %139 unwind label %196

139:                                              ; preds = %128
  %140 = load i32, ptr %138, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = invoke noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %141)
          to label %143 unwind label %196

143:                                              ; preds = %139
  %144 = add nsw i32 %134, %142
  %145 = add nsw i32 %144, 1
  %146 = sitofp i32 %145 to double
  store double %146, ptr %16, align 8, !tbaa !23
  %147 = load double, ptr %16, align 8, !tbaa !23
  %148 = call double @log10(double noundef 2.000000e+00) #7
  %149 = fmul double %147, %148
  %150 = call double @llvm.ceil.f64(double %149)
  %151 = fptosi double %150 to i32
  store i32 %151, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = invoke noundef i32 @_ZNK5sc_dt11scfx_string6lengthEv(ptr noundef nonnull align 8 dereferenceable(24) %152)
          to label %154 unwind label %200

154:                                              ; preds = %143
  store i32 %153, ptr %17, align 4, !tbaa !9
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = load i32, ptr %14, align 4, !tbaa !9
  invoke void @_ZN5sc_dt11scfx_string6appendEi(ptr noundef nonnull align 8 dereferenceable(24) %155, i32 noundef %156)
          to label %157 unwind label %200

157:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  %158 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %159 unwind label %204

159:                                              ; preds = %157
  br i1 %158, label %160, label %163

160:                                              ; preds = %159
  %161 = load i32, ptr %8, align 4, !tbaa !11
  %162 = icmp ne i32 %161, 0
  br label %163

163:                                              ; preds = %160, %159
  %164 = phi i1 [ false, %159 ], [ %162, %160 ]
  %165 = zext i1 %164 to i8
  store i8 %165, ptr %18, align 1, !tbaa !25
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = sub nsw i32 %168, 1
  store i32 %169, ptr %13, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %215, %163
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %17, align 4, !tbaa !9
  %173 = icmp sge i32 %171, %172
  br i1 %173, label %174, label %218

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %175 = invoke noundef i32 @_ZN5sc_dt8scfx_rep13divide_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37) %9)
          to label %176 unwind label %208

176:                                              ; preds = %174
  store i32 %175, ptr %19, align 4, !tbaa !9
  %177 = load i32, ptr %19, align 4, !tbaa !9
  %178 = add i32 48, %177
  %179 = trunc i32 %178 to i8
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5sc_dt11scfx_stringixEi(ptr noundef nonnull align 8 dereferenceable(24) %180, i32 noundef %181)
          to label %183 unwind label %208

183:                                              ; preds = %176
  store i8 %179, ptr %182, align 1, !tbaa !26
  %184 = load i8, ptr %18, align 1, !tbaa !25, !range !27, !noundef !28
  %185 = trunc i8 %184 to i1
  br i1 %185, label %186, label %214

186:                                              ; preds = %183
  %187 = load i32, ptr %19, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %189, label %212

189:                                              ; preds = %186
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %15, align 4, !tbaa !9
  br label %213

192:                                              ; preds = %125
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %11, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %12, align 4
  br label %406

196:                                              ; preds = %139, %128
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %11, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %12, align 4
  br label %238

200:                                              ; preds = %154, %143
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %11, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %12, align 4
  br label %237

204:                                              ; preds = %229, %221, %218, %157
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %11, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %12, align 4
  br label %236

208:                                              ; preds = %176, %174
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %11, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %236

212:                                              ; preds = %186
  store i8 0, ptr %18, align 1, !tbaa !25
  br label %213

213:                                              ; preds = %212, %189
  br label %214

214:                                              ; preds = %213, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %13, align 4, !tbaa !9
  %217 = add nsw i32 %216, -1
  store i32 %217, ptr %13, align 4, !tbaa !9
  br label %170, !llvm.loop !29

218:                                              ; preds = %170
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = load i32, ptr %15, align 4, !tbaa !9
  invoke void @_ZN5sc_dt11scfx_string7discardEi(ptr noundef nonnull align 8 dereferenceable(24) %219, i32 noundef %220)
          to label %221 unwind label %204

221:                                              ; preds = %218
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load i32, ptr %17, align 4, !tbaa !9
  %224 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5sc_dt11scfx_stringixEi(ptr noundef nonnull align 8 dereferenceable(24) %222, i32 noundef %223)
          to label %225 unwind label %204

225:                                              ; preds = %221
  %226 = load i8, ptr %224, align 1, !tbaa !26
  %227 = sext i8 %226 to i32
  %228 = icmp eq i32 %227, 48
  br i1 %228, label %229, label %235

229:                                              ; preds = %225
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN5sc_dt11scfx_string6removeEi(ptr noundef nonnull align 8 dereferenceable(24) %230, i32 noundef %231)
          to label %232 unwind label %204

232:                                              ; preds = %229
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = add nsw i32 %233, -1
  store i32 %234, ptr %14, align 4, !tbaa !9
  br label %235

235:                                              ; preds = %232, %225
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %239

236:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  br label %237

237:                                              ; preds = %236, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %238

238:                                              ; preds = %237, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %406

239:                                              ; preds = %235, %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  %240 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %241 unwind label %292

241:                                              ; preds = %239
  br i1 %240, label %383, label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %243, i8 noundef signext 46)
          to label %244 unwind label %292

244:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = icmp eq i32 %245, 0
  br i1 %246, label %247, label %250

247:                                              ; preds = %244
  %248 = load i32, ptr %8, align 4, !tbaa !11
  %249 = icmp ne i32 %248, 0
  br label %250

250:                                              ; preds = %247, %244
  %251 = phi i1 [ false, %244 ], [ %249, %247 ]
  %252 = zext i1 %251 to i8
  store i8 %252, ptr %22, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %253 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 1
  %254 = load i32, ptr %253, align 8, !tbaa !19
  %255 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %256 = load i32, ptr %255, align 4, !tbaa !18
  %257 = sub nsw i32 %254, %256
  %258 = mul nsw i32 %257, 32
  %259 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 0
  %260 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %261 = load i32, ptr %260, align 4, !tbaa !18
  %262 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %259, i32 noundef %261)
          to label %263 unwind label %296

263:                                              ; preds = %250
  %264 = load i32, ptr %262, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = invoke noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %265)
          to label %267 unwind label %296

267:                                              ; preds = %263
  %268 = sub nsw i32 %258, %266
  %269 = sub nsw i32 %268, 1
  %270 = sitofp i32 %269 to double
  store double %270, ptr %23, align 8, !tbaa !23
  %271 = load double, ptr %23, align 8, !tbaa !23
  %272 = call double @log10(double noundef 2.000000e+00) #7
  %273 = fmul double %271, %272
  %274 = call double @llvm.floor.f64(double %273)
  %275 = fptosi double %274 to i32
  store i32 %275, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #7
  invoke void @_ZN5sc_dt8scfx_repC1Ev(ptr noundef nonnull align 8 dereferenceable(37) %24)
          to label %276 unwind label %300

276:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #7
  %277 = load i32, ptr %21, align 4, !tbaa !9
  invoke void @_ZN5sc_dt10scfx_pow10clEi(ptr dead_on_unwind writable sret(%"class.sc_dt::scfx_rep") align 8 %25, ptr noundef nonnull align 8 dereferenceable(2560) @_ZN5sc_dtL8pow10_fxE, i32 noundef %277)
          to label %278 unwind label %304

278:                                              ; preds = %276
  invoke void @_ZN5sc_dt8multiplyERNS_8scfx_repERKS0_S3_i(ptr noundef nonnull align 8 dereferenceable(37) %24, ptr noundef nonnull align 8 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(37) %25, i32 noundef 1024)
          to label %279 unwind label %308

279:                                              ; preds = %278
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %25) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #7
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(37) %24)
          to label %280 unwind label %313

280:                                              ; preds = %279
  %281 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %282 = load i32, ptr %281, align 4, !tbaa !18
  %283 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %284 unwind label %313

284:                                              ; preds = %280
  %285 = sub nsw i32 %283, 1
  %286 = icmp eq i32 %282, %285
  br i1 %286, label %287, label %317

287:                                              ; preds = %284
  %288 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %289 unwind label %313

289:                                              ; preds = %287
  %290 = add nsw i32 %288, 1
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %10, i32 noundef %290, i32 noundef 1)
          to label %291 unwind label %313

291:                                              ; preds = %289
  br label %317

292:                                              ; preds = %396, %389, %242, %239
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %11, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %12, align 4
  br label %405

296:                                              ; preds = %263, %250
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %11, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %12, align 4
  br label %382

300:                                              ; preds = %267
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %11, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %12, align 4
  br label %381

304:                                              ; preds = %276
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %11, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %12, align 4
  br label %312

308:                                              ; preds = %278
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %11, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %12, align 4
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %25) #7
  br label %312

312:                                              ; preds = %308, %304
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #7
  br label %380

313:                                              ; preds = %338, %334, %326, %289, %287, %280, %279
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %11, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %12, align 4
  br label %380

317:                                              ; preds = %291, %284
  %318 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %318, ptr %20, align 4, !tbaa !9
  %319 = load i8, ptr %22, align 1, !tbaa !25, !range !27, !noundef !28
  %320 = trunc i8 %319 to i1
  br i1 %320, label %333, label %321

321:                                              ; preds = %317
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %329, %321
  %323 = load i32, ptr %13, align 4, !tbaa !9
  %324 = load i32, ptr %21, align 4, !tbaa !9
  %325 = icmp slt i32 %323, %324
  br i1 %325, label %326, label %332

326:                                              ; preds = %322
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %327, i8 noundef signext 48)
          to label %328 unwind label %313

328:                                              ; preds = %326
  br label %329

329:                                              ; preds = %328
  %330 = load i32, ptr %13, align 4, !tbaa !9
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %13, align 4, !tbaa !9
  br label %322, !llvm.loop !30

332:                                              ; preds = %322
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %333

333:                                              ; preds = %332, %317
  br label %334

334:                                              ; preds = %376, %333
  %335 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %336 unwind label %313

336:                                              ; preds = %334
  %337 = xor i1 %335, true
  br i1 %337, label %338, label %379

338:                                              ; preds = %336
  invoke void @_ZN5sc_dt8scfx_rep15multiply_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37) %10)
          to label %339 unwind label %313

339:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %340 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 0
  %341 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %342 = load i32, ptr %341, align 4, !tbaa !18
  %343 = add nsw i32 %342, 1
  %344 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %340, i32 noundef %343)
          to label %345 unwind label %355

345:                                              ; preds = %339
  %346 = load i32, ptr %344, align 4, !tbaa !9
  store i32 %346, ptr %26, align 4, !tbaa !9
  %347 = load i8, ptr %22, align 1, !tbaa !25, !range !27, !noundef !28
  %348 = trunc i8 %347 to i1
  br i1 %348, label %349, label %361

349:                                              ; preds = %345
  %350 = load i32, ptr %26, align 4, !tbaa !9
  %351 = icmp eq i32 %350, 0
  br i1 %351, label %352, label %359

352:                                              ; preds = %349
  %353 = load i32, ptr %21, align 4, !tbaa !9
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %21, align 4, !tbaa !9
  br label %360

355:                                              ; preds = %370, %364, %339
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %11, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %380

359:                                              ; preds = %349
  store i8 0, ptr %22, align 1, !tbaa !25
  br label %360

360:                                              ; preds = %359, %352
  br label %361

361:                                              ; preds = %360, %345
  %362 = load i8, ptr %22, align 1, !tbaa !25, !range !27, !noundef !28
  %363 = trunc i8 %362 to i1
  br i1 %363, label %370, label %364

364:                                              ; preds = %361
  %365 = load i32, ptr %26, align 4, !tbaa !9
  %366 = add nsw i32 48, %365
  %367 = trunc i32 %366 to i8
  %368 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %368, i8 noundef signext %367)
          to label %369 unwind label %355

369:                                              ; preds = %364
  br label %370

370:                                              ; preds = %369, %361
  %371 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 0
  %372 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %10, i32 0, i32 4
  %373 = load i32, ptr %372, align 4, !tbaa !18
  %374 = add nsw i32 %373, 1
  %375 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %371, i32 noundef %374)
          to label %376 unwind label %355

376:                                              ; preds = %370
  store i32 0, ptr %375, align 4, !tbaa !9
  %377 = load i32, ptr %20, align 4, !tbaa !9
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %334, !llvm.loop !31

379:                                              ; preds = %336
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %24) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %383

380:                                              ; preds = %355, %313, %312
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %24) #7
  br label %381

381:                                              ; preds = %380, %300
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #7
  br label %382

382:                                              ; preds = %381, %296
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %405

383:                                              ; preds = %379, %241
  %384 = load i32, ptr %8, align 4, !tbaa !11
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %386, label %403

386:                                              ; preds = %383
  %387 = load i32, ptr %20, align 4, !tbaa !9
  %388 = icmp eq i32 %387, 0
  br i1 %388, label %389, label %393

389:                                              ; preds = %386
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = load i32, ptr %15, align 4, !tbaa !9
  invoke void @_ZN5sc_dt14scfx_print_expERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %390, i32 noundef %391)
          to label %392 unwind label %292

392:                                              ; preds = %389
  br label %402

393:                                              ; preds = %386
  %394 = load i32, ptr %14, align 4, !tbaa !9
  %395 = icmp eq i32 %394, 0
  br i1 %395, label %396, label %401

396:                                              ; preds = %393
  %397 = load ptr, ptr %5, align 8, !tbaa !5
  %398 = load i32, ptr %21, align 4, !tbaa !9
  %399 = sub nsw i32 0, %398
  invoke void @_ZN5sc_dt14scfx_print_expERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %397, i32 noundef %399)
          to label %400 unwind label %292

400:                                              ; preds = %396
  br label %401

401:                                              ; preds = %400, %393
  br label %402

402:                                              ; preds = %401, %392
  br label %403

403:                                              ; preds = %402, %383
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %10) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #7
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  br label %404

404:                                              ; preds = %403, %39
  ret void

405:                                              ; preds = %382, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %406

406:                                              ; preds = %405, %238, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %407

407:                                              ; preds = %406, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %10) #7
  br label %408

408:                                              ; preds = %407, %67
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #7
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  br label %409

409:                                              ; preds = %408
  %410 = load ptr, ptr %11, align 8
  %411 = load i32, ptr %12, align 4
  %412 = insertvalue { ptr, i32 } poison, ptr %410, 0
  %413 = insertvalue { ptr, i32 } %412, i32 %411, 1
  resume { ptr, i32 } %413
}

; 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) #1

; Function Attrs: nounwind
declare double @log10(double noundef) #5

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

; 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 nounwind uwtable
declare dso_local void @_ZN5sc_dt11scfx_string6appendEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5sc_dt8scfx_rep13divide_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37)) #3 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) #1 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11scfx_string6removeEi(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) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8multiplyERNS_8scfx_repERKS0_S3_i(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #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) #1

declare void @_ZN5sc_dt8scfx_repC1Ev(ptr)

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

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

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


; 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_pow10" = type { [32 x %"class.sc_dt::scfx_rep"], [32 x %"class.sc_dt::scfx_rep"] }
%"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] }>

@_ZN5sc_dtL8pow10_fxE = external hidden global %"class.sc_dt::scfx_pow10", align 8

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: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1 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 #1 align 2

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

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

declare void @_ZN5sc_dt10scfx_pow10clEi(ptr dead_on_unwind writable sret(%"class.sc_dt::scfx_rep") align 8, ptr noundef nonnull align 8 dereferenceable(2560), i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt9print_decERNS_11scfx_stringERKNS_8scfx_repEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(37) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sc_dt::scfx_rep", align 8
  %6 = alloca %"class.sc_dt::scfx_rep", align 8
  %7 = alloca %"class.sc_dt::scfx_rep", align 8
  %8 = alloca %"class.sc_dt::scfx_rep", align 8
  %9 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %1)
  br i1 %9, label %10, label %11

10:                                               ; preds = %4
  tail call void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 45)
  br label %11

11:                                               ; preds = %10, %4
  %12 = icmp eq i32 %2, 1
  br i1 %12, label %13, label %14

13:                                               ; preds = %11
  tail call void @_ZN5sc_dt17scfx_print_prefixERNS_11scfx_stringENS_9sc_numrepE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 10)
  br label %14

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

16:                                               ; preds = %14
  tail call void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 48)
  br label %197

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %5, ptr noundef nonnull align 8 dereferenceable(37) %1)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  invoke void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %6, ptr noundef nonnull align 8 dereferenceable(37) %1)
          to label %18 unwind label %35

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %5, i64 32
  %20 = load i32, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %5, i64 28
  %22 = getelementptr inbounds i8, ptr %5, i64 16
  %23 = load i32, ptr %21, align 4, !tbaa !14
  %24 = icmp sle i32 %20, %23
  %25 = load i32, ptr %22, align 8
  %26 = icmp slt i32 %20, %25
  %27 = select i1 %24, i1 %26, i1 false
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %18, %.lr.ph
  %.081127 = phi i32 [ %29, %.lr.ph ], [ %20, %18 ]
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %.081127)
  store i32 0, ptr %28, align 4, !tbaa !15
  %29 = add nsw i32 %.081127, 1
  %30 = load i32, ptr %21, align 4, !tbaa !14
  %31 = icmp slt i32 %.081127, %30
  %32 = load i32, ptr %22, align 8
  %33 = icmp slt i32 %29, %32
  %34 = select i1 %31, i1 %33, i1 false
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !16

35:                                               ; preds = %17
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %199

37:                                               ; preds = %73, %71, %65, %._crit_edge131, %45, %43, %._crit_edge
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %198

._crit_edge:                                      ; preds = %.lr.ph, %18
  invoke void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %39 unwind label %37

39:                                               ; preds = %._crit_edge
  %40 = load i32, ptr %22, align 8, !tbaa !18
  %41 = load i32, ptr %19, align 8, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %48

43:                                               ; preds = %39
  %44 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %45 unwind label %37

45:                                               ; preds = %43
  %46 = load i32, ptr %22, align 8, !tbaa !18
  %47 = sub nsw i32 %44, %46
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %5, i32 noundef %47, i32 noundef -1)
          to label %48 unwind label %37

48:                                               ; preds = %45, %39
  %49 = getelementptr inbounds i8, ptr %6, i64 28
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = getelementptr inbounds i8, ptr %6, i64 32
  %52 = getelementptr inbounds i8, ptr %6, i64 16
  %53 = load i32, ptr %51, align 8, !tbaa !5
  %54 = icmp sge i32 %50, %53
  %55 = load i32, ptr %52, align 8
  %56 = icmp sge i32 %50, %55
  %57 = select i1 %54, i1 %56, i1 false
  br i1 %57, label %.lr.ph130, label %._crit_edge131

.lr.ph130:                                        ; preds = %48, %.lr.ph130
  %.182128 = phi i32 [ %59, %.lr.ph130 ], [ %50, %48 ]
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %6, i32 noundef %.182128)
  store i32 0, ptr %58, align 4, !tbaa !15
  %59 = add nsw i32 %.182128, -1
  %60 = load i32, ptr %51, align 8, !tbaa !5
  %61 = icmp sgt i32 %.182128, %60
  %62 = load i32, ptr %52, align 8
  %63 = icmp sgt i32 %.182128, %62
  %64 = select i1 %61, i1 %63, i1 false
  br i1 %64, label %.lr.ph130, label %._crit_edge131, !llvm.loop !19

._crit_edge131:                                   ; preds = %.lr.ph130, %48
  invoke void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %65 unwind label %37

65:                                               ; preds = %._crit_edge131
  %66 = load i32, ptr %49, align 4, !tbaa !14
  %67 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %68 unwind label %37

68:                                               ; preds = %65
  %69 = add nsw i32 %67, -1
  %70 = icmp eq i32 %66, %69
  br i1 %70, label %71, label %75

71:                                               ; preds = %68
  %72 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %73 unwind label %37

73:                                               ; preds = %71
  %74 = add nsw i32 %72, 1
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %6, i32 noundef %74, i32 noundef 1)
          to label %75 unwind label %37

75:                                               ; preds = %73, %68
  %76 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %77 unwind label %106

77:                                               ; preds = %75
  br i1 %76, label %118, label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %21, align 4, !tbaa !14
  %80 = load i32, ptr %22, align 8, !tbaa !18
  %81 = sub nsw i32 %79, %80
  %82 = shl nsw i32 %81, 5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %79)
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = zext i32 %84 to i64
  %86 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %85)
  %87 = or disjoint i32 %82, 1
  %88 = add i32 %87, %86
  %89 = sitofp i32 %88 to double
  %90 = fmul double %89, 0x3FD34413509F79FF
  %91 = call double @llvm.ceil.f64(double %90)
  %92 = fptosi double %91 to i32
  %93 = call noundef i32 @_ZNK5sc_dt11scfx_string6lengthEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @_ZN5sc_dt11scfx_string6appendEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %92)
  %94 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %95 unwind label %108

95:                                               ; preds = %78
  %.not.not133 = icmp sgt i32 %92, 0
  br i1 %.not.not133, label %.lr.ph138.preheader, label %._crit_edge139

.lr.ph138.preheader:                              ; preds = %95
  %96 = add nsw i32 %93, %92
  %97 = icmp ne i32 %3, 0
  %98 = and i1 %97, %94
  br label %.lr.ph138

.lr.ph138:                                        ; preds = %.lr.ph138.preheader, %102
  %.283136.in = phi i32 [ %.283136, %102 ], [ %96, %.lr.ph138.preheader ]
  %.085135 = phi i1 [ %narrow, %102 ], [ %98, %.lr.ph138.preheader ]
  %.089134 = phi i32 [ %.190, %102 ], [ 0, %.lr.ph138.preheader ]
  %.283136 = add nsw i32 %.283136.in, -1
  %99 = invoke noundef i32 @_ZN5sc_dt8scfx_rep13divide_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %100 unwind label %110

100:                                              ; preds = %.lr.ph138
  %101 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5sc_dt11scfx_stringixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.283136)
          to label %102 unwind label %110

102:                                              ; preds = %100
  %103 = trunc i32 %99 to i8
  %104 = add i8 %103, 48
  store i8 %104, ptr %101, align 1, !tbaa !20
  %105 = icmp eq i32 %99, 0
  %narrow = and i1 %.085135, %105
  %spec.select = zext i1 %narrow to i32
  %.190 = add nuw nsw i32 %.089134, %spec.select
  %.not.not = icmp sgt i32 %.283136, %93
  br i1 %.not.not, label %.lr.ph138, label %._crit_edge139, !llvm.loop !21

106:                                              ; preds = %75
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %198

108:                                              ; preds = %._crit_edge139, %78
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %198

110:                                              ; preds = %100, %.lr.ph138
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %198

._crit_edge139:                                   ; preds = %102, %95
  %.089.lcssa = phi i32 [ 0, %95 ], [ %.190, %102 ]
  call void @_ZN5sc_dt11scfx_string7discardEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.089.lcssa)
  %112 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5sc_dt11scfx_stringixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %93)
          to label %113 unwind label %108

113:                                              ; preds = %._crit_edge139
  %114 = load i8, ptr %112, align 1, !tbaa !20
  %115 = icmp eq i8 %114, 48
  br i1 %115, label %116, label %118

116:                                              ; preds = %113
  call void @_ZN5sc_dt11scfx_string6removeEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %93)
  %117 = add nsw i32 %92, -1
  br label %118

118:                                              ; preds = %113, %116, %77
  %.291 = phi i32 [ 0, %77 ], [ %.089.lcssa, %116 ], [ %.089.lcssa, %113 ]
  %.188 = phi i32 [ 0, %77 ], [ %117, %116 ], [ %92, %113 ]
  %119 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %120 unwind label %154

120:                                              ; preds = %118
  br i1 %119, label %.thread, label %121

121:                                              ; preds = %120
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 46)
          to label %122 unwind label %154

122:                                              ; preds = %121
  %123 = icmp eq i32 %.188, 0
  %124 = icmp ne i32 %3, 0
  %125 = and i1 %124, %123
  %126 = zext i1 %125 to i8
  %127 = load i32, ptr %52, align 8, !tbaa !18
  %128 = load i32, ptr %49, align 4, !tbaa !14
  %129 = sub nsw i32 %127, %128
  %130 = shl nsw i32 %129, 5
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %6, i32 noundef %128)
  %132 = load i32, ptr %131, align 4, !tbaa !15
  %133 = zext i32 %132 to i64
  %134 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %133)
  %135 = xor i32 %134, -1
  %136 = add i32 %130, %135
  %137 = sitofp i32 %136 to double
  %138 = fmul double %137, 0x3FD34413509F79FF
  %139 = call double @llvm.floor.f64(double %138)
  %140 = fptosi double %139 to i32
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  invoke void @_ZN5sc_dt8scfx_repC1Ev(ptr noundef nonnull align 8 dereferenceable(37) %7)
          to label %141 unwind label %156

141:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  invoke void @_ZN5sc_dt10scfx_pow10clEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::scfx_rep") align 8 %8, ptr noundef nonnull align 8 dereferenceable(2560) @_ZN5sc_dtL8pow10_fxE, i32 noundef %140)
          to label %142 unwind label %158

142:                                              ; preds = %141
  invoke void @_ZN5sc_dt8multiplyERNS_8scfx_repERKS0_S3_i(ptr noundef nonnull align 8 dereferenceable(37) %7, ptr noundef nonnull align 8 dereferenceable(37) %6, ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef 1024)
          to label %143 unwind label %160

143:                                              ; preds = %142
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %6, ptr noundef nonnull align 8 dereferenceable(37) %7)
          to label %144 unwind label %.loopexit.split-lp.loopexit.split-lp

144:                                              ; preds = %143
  %145 = load i32, ptr %49, align 4, !tbaa !14
  %146 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %147 unwind label %.loopexit.split-lp.loopexit.split-lp

147:                                              ; preds = %144
  %148 = add nsw i32 %146, -1
  %149 = icmp eq i32 %145, %148
  br i1 %149, label %150, label %163

150:                                              ; preds = %147
  %151 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %152 unwind label %.loopexit.split-lp.loopexit.split-lp

152:                                              ; preds = %150
  %153 = add nsw i32 %151, 1
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %6, i32 noundef %153, i32 noundef 1)
          to label %163 unwind label %.loopexit.split-lp.loopexit.split-lp

154:                                              ; preds = %.invoke, %121, %118
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %198

156:                                              ; preds = %122
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %188

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

160:                                              ; preds = %142
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %8) #6
  br label %162

162:                                              ; preds = %160, %158
  %.pn94 = phi { ptr, i32 } [ %161, %160 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %.loopexit.split-lp

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

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

.loopexit.split-lp.loopexit.split-lp:             ; preds = %152, %150, %144, %143
  %lpad.loopexit.split-lp118 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

163:                                              ; preds = %152, %147
  br i1 %125, label %.loopexit116.preheader, label %.preheader

.preheader:                                       ; preds = %163
  %164 = icmp sgt i32 %140, 0
  br i1 %164, label %.lr.ph141, label %.loopexit116.preheader

.lr.ph141:                                        ; preds = %.preheader, %165
  %.384140 = phi i32 [ %166, %165 ], [ 0, %.preheader ]
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 48)
          to label %165 unwind label %.loopexit.split-lp.loopexit

165:                                              ; preds = %.lr.ph141
  %166 = add nuw nsw i32 %.384140, 1
  %exitcond.not = icmp eq i32 %166, %140
  br i1 %exitcond.not, label %.loopexit116.preheader, label %.lr.ph141, !llvm.loop !22

.loopexit116.preheader:                           ; preds = %165, %.preheader, %163
  %.176.ph = phi i32 [ %140, %163 ], [ 0, %.preheader ], [ 0, %165 ]
  br label %.loopexit116

.loopexit116:                                     ; preds = %.loopexit116.preheader, %183
  %.079 = phi i32 [ %187, %183 ], [ %140, %.loopexit116.preheader ]
  %.176 = phi i32 [ %.277, %183 ], [ %.176.ph, %.loopexit116.preheader ]
  %.073 = phi i8 [ %.174, %183 ], [ %126, %.loopexit116.preheader ]
  %167 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %168 unwind label %.loopexit

168:                                              ; preds = %.loopexit116
  br i1 %167, label %189, label %169

169:                                              ; preds = %168
  invoke void @_ZN5sc_dt8scfx_rep15multiply_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37) %6)
          to label %170 unwind label %.loopexit

170:                                              ; preds = %169
  %171 = load i32, ptr %49, align 4, !tbaa !14
  %172 = add nsw i32 %171, 1
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %6, i32 noundef %172)
  %174 = load i32, ptr %173, align 4, !tbaa !15
  %175 = trunc nuw i8 %.073 to i1
  %176 = icmp eq i32 %174, 0
  %spec.select106 = select i1 %176, i8 %.073, i8 0
  %narrow115 = select i1 %175, i1 %176, i1 false
  %spec.select105 = zext i1 %narrow115 to i32
  %.277 = add nsw i32 %.176, %spec.select105
  %.174 = select i1 %175, i8 %spec.select106, i8 %.073
  %177 = trunc nuw i8 %.174 to i1
  br i1 %177, label %183, label %180

178:                                              ; preds = %180
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

180:                                              ; preds = %170
  %181 = trunc i32 %174 to i8
  %182 = add i8 %181, 48
  invoke void @_ZN5sc_dt11scfx_stringpLEc(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext %182)
          to label %183 unwind label %178

183:                                              ; preds = %180, %170
  %184 = load i32, ptr %49, align 4, !tbaa !14
  %185 = add nsw i32 %184, 1
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %6, i32 noundef %185)
  store i32 0, ptr %186, align 4, !tbaa !15
  %187 = add nsw i32 %.079, 1
  br label %.loopexit116, !llvm.loop !23

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %178, %162
  %.pn96 = phi { ptr, i32 } [ %179, %178 ], [ %.pn94, %162 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit117, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp118, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %7) #6
  br label %188

188:                                              ; preds = %.loopexit.split-lp, %156
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %.loopexit.split-lp ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  br label %198

189:                                              ; preds = %168
  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
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %196, label %190

.thread:                                          ; preds = %120
  %.not109 = icmp eq i32 %3, 0
  br i1 %.not109, label %196, label %.invoke

190:                                              ; preds = %189
  %191 = icmp eq i32 %.079, 0
  br i1 %191, label %.invoke, label %192

192:                                              ; preds = %190
  br i1 %123, label %193, label %196

193:                                              ; preds = %192
  %194 = sub nsw i32 0, %.176
  br label %.invoke

.invoke:                                          ; preds = %190, %.thread, %193
  %195 = phi i32 [ %194, %193 ], [ %.291, %.thread ], [ %.291, %190 ]
  invoke void @_ZN5sc_dt14scfx_print_expERNS_11scfx_stringEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %195)
          to label %196 unwind label %154

196:                                              ; preds = %.invoke, %.thread, %192, %189
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  br label %197

197:                                              ; preds = %196, %16
  ret void

198:                                              ; preds = %106, %110, %108, %188, %154, %37
  %.pn99.pn.pn = phi { ptr, i32 } [ %38, %37 ], [ %107, %106 ], [ %111, %110 ], [ %109, %108 ], [ %155, %154 ], [ %.pn96.pn, %188 ]
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %6) #6
  br label %199

199:                                              ; preds = %198, %35
  %.pn99.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn, %198 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn99.pn.pn.pn
}

; 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 #1

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

; 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 nounwind uwtable
declare dso_local void @_ZN5sc_dt11scfx_string6appendEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5sc_dt8scfx_rep13divide_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #3 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 #1 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11scfx_string6removeEi(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) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8multiplyERNS_8scfx_repERKS0_S3_i(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #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 #1

declare void @_ZN5sc_dt8scfx_repC1Ev(ptr) local_unnamed_addr

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


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