; LLVM IR from eyangch/competitive-programming :: Codeforces/1341 (d)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_Z1dB5cxx11 = external dso_local global [10 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %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 i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = call ptr @llvm.stacksave.p0()
  store ptr %31, ptr %4, align 8
  %32 = alloca %"class.std::__cxx11::basic_string", i64 %30, align 16
  store i64 %30, ptr %5, align 8
  %33 = icmp eq i64 %30, 0
  br i1 %33, label %40, label %34

34:                                               ; preds = %0
  %35 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 %30
  br label %36

36:                                               ; preds = %36, %34
  %37 = phi ptr [ %32, %34 ], [ %38, %36 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  %38 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %37, i64 1
  %39 = icmp eq ptr %38, %35
  br i1 %39, label %40, label %36

40:                                               ; preds = %36, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %54, %40
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %61

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %48 unwind label %57

48:                                               ; preds = %46
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 %50
  %52 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %53 unwind label %57

53:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %6, align 4, !tbaa !5
  br label %41, !llvm.loop !9

57:                                               ; preds = %48, %46
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %355

61:                                               ; preds = %45
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = alloca [10 x i32], i64 %63, align 16
  store i64 %63, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %150, %61
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %153

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %146, %70
  %72 = load i32, ptr %13, align 4, !tbaa !5
  %73 = icmp slt i32 %72, 10
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %149

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %134, %75
  %77 = load i32, ptr %15, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 7
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 11, ptr %12, align 4
  br label %137

80:                                               ; preds = %76
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 %82
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %83, i64 noundef %85)
          to label %87 unwind label %103

87:                                               ; preds = %80
  %88 = load i8, ptr %86, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  %90 = icmp eq i32 %89, 49
  br i1 %90, label %91, label %107

91:                                               ; preds = %87
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10 x %"class.std::__cxx11::basic_string"], ptr @_Z1dB5cxx11, i64 0, i64 %93
  %95 = load i32, ptr %15, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %94, i64 noundef %96)
          to label %98 unwind label %103

98:                                               ; preds = %91
  %99 = load i8, ptr %97, align 1, !tbaa !11
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %100, 48
  br i1 %101, label %102, label %107

102:                                              ; preds = %98
  store i32 -1, ptr %14, align 4, !tbaa !5
  store i32 11, ptr %12, align 4
  br label %137

103:                                              ; preds = %118, %107, %91, %80
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %8, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %9, align 4
  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 @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %355

107:                                              ; preds = %98, %87
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 %109
  %111 = load i32, ptr %15, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %110, i64 noundef %112)
          to label %114 unwind label %103

114:                                              ; preds = %107
  %115 = load i8, ptr %113, align 1, !tbaa !11
  %116 = sext i8 %115 to i32
  %117 = icmp eq i32 %116, 48
  br i1 %117, label %118, label %132

118:                                              ; preds = %114
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [10 x %"class.std::__cxx11::basic_string"], ptr @_Z1dB5cxx11, i64 0, i64 %120
  %122 = load i32, ptr %15, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %121, i64 noundef %123)
          to label %125 unwind label %103

125:                                              ; preds = %118
  %126 = load i8, ptr %124, align 1, !tbaa !11
  %127 = sext i8 %126 to i32
  %128 = icmp eq i32 %127, 49
  br i1 %128, label %129, label %132

129:                                              ; preds = %125
  %130 = load i32, ptr %14, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %14, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %129, %125, %114
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %15, align 4, !tbaa !5
  br label %76, !llvm.loop !12

137:                                              ; preds = %102, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [10 x i32], ptr %64, i64 %141
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [10 x i32], ptr %142, i64 0, i64 %144
  store i32 %139, ptr %145, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %146

146:                                              ; preds = %138
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %13, align 4, !tbaa !5
  br label %71, !llvm.loop !13

149:                                              ; preds = %74
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %11, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %11, align 4, !tbaa !5
  br label %65, !llvm.loop !14

153:                                              ; preds = %69
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  %156 = zext i32 %155 to i64
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  %159 = zext i32 %158 to i64
  %160 = mul nuw i64 %156, %159
  %161 = alloca i32, i64 %160, align 16
  store i64 %156, ptr %16, align 8
  store i64 %159, ptr %17, align 8
  %162 = mul nsw i64 0, %159
  %163 = getelementptr inbounds i32, ptr %161, i64 %162
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = mul nsw i64 %165, %159
  %167 = getelementptr inbounds i32, ptr %161, i64 %166
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %167, i64 %169
  %171 = getelementptr inbounds i32, ptr %170, i64 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  store i8 0, ptr %18, align 1, !tbaa !15
  invoke void @_ZSt4fillIPibEvT_S1_RKT0_(ptr noundef %163, ptr noundef %171, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %172 unwind label %183

172:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  %173 = load i32, ptr %2, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = mul nsw i64 %174, %159
  %176 = getelementptr inbounds i32, ptr %161, i64 %175
  %177 = getelementptr inbounds i32, ptr %176, i64 0
  store i32 1, ptr %177, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %178 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %178, ptr %19, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %246, %172
  %180 = load i32, ptr %19, align 4, !tbaa !5
  %181 = icmp sge i32 %180, 1
  br i1 %181, label %187, label %182

182:                                              ; preds = %179
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %249

183:                                              ; preds = %153
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %8, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  br label %355

187:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %242, %187
  %189 = load i32, ptr %20, align 4, !tbaa !5
  %190 = load i32, ptr %3, align 4, !tbaa !5
  %191 = icmp sle i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %245

193:                                              ; preds = %188
  %194 = load i32, ptr %19, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = mul nsw i64 %195, %159
  %197 = getelementptr inbounds i32, ptr %161, i64 %196
  %198 = load i32, ptr %20, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds i32, ptr %197, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %204, label %203

203:                                              ; preds = %193
  br label %242

204:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %238, %204
  %206 = load i32, ptr %21, align 4, !tbaa !5
  %207 = icmp slt i32 %206, 10
  br i1 %207, label %209, label %208

208:                                              ; preds = %205
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %241

209:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %210 = load i32, ptr %19, align 4, !tbaa !5
  %211 = sub nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [10 x i32], ptr %64, i64 %212
  %214 = load i32, ptr %21, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [10 x i32], ptr %213, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !5
  store i32 %217, ptr %22, align 4, !tbaa !5
  %218 = load i32, ptr %22, align 4, !tbaa !5
  %219 = icmp ne i32 %218, -1
  br i1 %219, label %220, label %237

220:                                              ; preds = %209
  %221 = load i32, ptr %20, align 4, !tbaa !5
  %222 = load i32, ptr %22, align 4, !tbaa !5
  %223 = add nsw i32 %221, %222
  %224 = load i32, ptr %3, align 4, !tbaa !5
  %225 = icmp sle i32 %223, %224
  br i1 %225, label %226, label %237

226:                                              ; preds = %220
  %227 = load i32, ptr %19, align 4, !tbaa !5
  %228 = sub nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = mul nsw i64 %229, %159
  %231 = getelementptr inbounds i32, ptr %161, i64 %230
  %232 = load i32, ptr %20, align 4, !tbaa !5
  %233 = load i32, ptr %22, align 4, !tbaa !5
  %234 = add nsw i32 %232, %233
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds i32, ptr %231, i64 %235
  store i32 1, ptr %236, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %226, %220, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %21, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %21, align 4, !tbaa !5
  br label %205, !llvm.loop !17

241:                                              ; preds = %208
  br label %242

242:                                              ; preds = %241, %203
  %243 = load i32, ptr %20, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %20, align 4, !tbaa !5
  br label %188, !llvm.loop !18

245:                                              ; preds = %192
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %19, align 4, !tbaa !5
  %248 = add nsw i32 %247, -1
  store i32 %248, ptr %19, align 4, !tbaa !5
  br label %179, !llvm.loop !19

249:                                              ; preds = %182
  %250 = mul nsw i64 0, %159
  %251 = getelementptr inbounds i32, ptr %161, i64 %250
  %252 = load i32, ptr %3, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds i32, ptr %251, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %266, label %257

257:                                              ; preds = %249
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %259 unwind label %262

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %261 unwind label %262

261:                                              ; preds = %259
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  br label %345

262:                                              ; preds = %342, %259, %257
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %8, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %9, align 4
  br label %355

266:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %335, %266
  %268 = load i32, ptr %23, align 4, !tbaa !5
  %269 = load i32, ptr %2, align 4, !tbaa !5
  %270 = icmp slt i32 %268, %269
  br i1 %270, label %272, label %271

271:                                              ; preds = %267
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %342

272:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 -1, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %273 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %273, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %319, %272
  %275 = load i32, ptr %26, align 4, !tbaa !5
  %276 = icmp slt i32 %275, 10
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  store i32 26, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %322

278:                                              ; preds = %274
  %279 = load i32, ptr %25, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [10 x i32], ptr %64, i64 %280
  %282 = load i32, ptr %26, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [10 x i32], ptr %281, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = load i32, ptr %3, align 4, !tbaa !5
  %287 = icmp sle i32 %285, %286
  br i1 %287, label %288, label %318

288:                                              ; preds = %278
  %289 = load i32, ptr %25, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [10 x i32], ptr %64, i64 %290
  %292 = load i32, ptr %26, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [10 x i32], ptr %291, i64 0, i64 %293
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = icmp ne i32 %295, -1
  br i1 %296, label %297, label %318

297:                                              ; preds = %288
  %298 = load i32, ptr %23, align 4, !tbaa !5
  %299 = add nsw i32 %298, 1
  %300 = sext i32 %299 to i64
  %301 = mul nsw i64 %300, %159
  %302 = getelementptr inbounds i32, ptr %161, i64 %301
  %303 = load i32, ptr %3, align 4, !tbaa !5
  %304 = load i32, ptr %25, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [10 x i32], ptr %64, i64 %305
  %307 = load i32, ptr %26, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [10 x i32], ptr %306, i64 0, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !5
  %311 = sub nsw i32 %303, %310
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds i32, ptr %302, i64 %312
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %318

316:                                              ; preds = %297
  %317 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %317, ptr %24, align 4, !tbaa !5
  br label %318

318:                                              ; preds = %316, %297, %288, %278
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %26, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %26, align 4, !tbaa !5
  br label %274, !llvm.loop !20

322:                                              ; preds = %277
  %323 = load i32, ptr %25, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [10 x i32], ptr %64, i64 %324
  %326 = load i32, ptr %24, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [10 x i32], ptr %325, i64 0, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = load i32, ptr %3, align 4, !tbaa !5
  %331 = sub nsw i32 %330, %329
  store i32 %331, ptr %3, align 4, !tbaa !5
  %332 = load i32, ptr %24, align 4, !tbaa !5
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %332)
          to label %334 unwind label %338

334:                                              ; preds = %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %23, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %23, align 4, !tbaa !5
  br label %267, !llvm.loop !21

338:                                              ; preds = %322
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %8, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %355

342:                                              ; preds = %271
  %343 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %344 unwind label %262

344:                                              ; preds = %342
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  br label %345

345:                                              ; preds = %344, %261
  %346 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 %30
  %347 = icmp eq ptr %32, %346
  br i1 %347, label %352, label %348

348:                                              ; preds = %348, %345
  %349 = phi ptr [ %346, %345 ], [ %350, %348 ]
  %350 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %349, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %350) #7
  %351 = icmp eq ptr %350, %32
  br i1 %351, label %352, label %348

352:                                              ; preds = %348, %345
  %353 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %353)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %354 = load i32, ptr %1, align 4
  ret i32 %354

355:                                              ; preds = %338, %262, %183, %103, %57
  %356 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %32, i64 %30
  %357 = icmp eq ptr %32, %356
  br i1 %357, label %362, label %358

358:                                              ; preds = %358, %355
  %359 = phi ptr [ %356, %355 ], [ %360, %358 ]
  %360 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %359, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %360) #7
  %361 = icmp eq ptr %360, %32
  br i1 %361, label %362, label %358

362:                                              ; preds = %358, %355
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %363

363:                                              ; preds = %362
  %364 = load ptr, ptr %8, align 8
  %365 = load i32, ptr %9, align 4
  %366 = insertvalue { ptr, i32 } poison, ptr %364, 0
  %367 = insertvalue { ptr, i32 } %366, i32 %365, 1
  resume { ptr, i32 } %367
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPibEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 #6 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_Z1dB5cxx11 = external dso_local global [10 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = call ptr @llvm.stacksave.p0()
  %10 = alloca %"class.std::__cxx11::basic_string", i64 %8, align 16
  %11 = icmp eq i32 %7, 0
  br i1 %11, label %.loopexit97, label %12

12:                                               ; preds = %0
  %13 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %10, i64 %8
  br label %14

14:                                               ; preds = %14, %12
  %15 = phi ptr [ %10, %12 ], [ %16, %14 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  %16 = getelementptr inbounds i8, ptr %15, i64 32
  %17 = icmp eq ptr %16, %13
  br i1 %17, label %.loopexit97, label %14

.loopexit97:                                      ; preds = %14, %0
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.loopexit97
  %20 = zext i32 %18 to i64
  %21 = alloca [10 x i32], i64 %20, align 16
  br label %._crit_edge.._crit_edge105_crit_edge

._crit_edge:                                      ; preds = %31
  %22 = zext i32 %32 to i64
  %23 = alloca [10 x i32], i64 %22, align 16
  %24 = icmp sgt i32 %32, 0
  br i1 %24, label %.preheader96, label %._crit_edge.._crit_edge105_crit_edge

._crit_edge.._crit_edge105_crit_edge:             ; preds = %._crit_edge.thread, %._crit_edge
  %25 = phi ptr [ %21, %._crit_edge.thread ], [ %23, %._crit_edge ]
  %26 = phi i32 [ %18, %._crit_edge.thread ], [ %32, %._crit_edge ]
  %.pre149 = sext i32 %26 to i64
  br label %._crit_edge105

.lr.ph:                                           ; preds = %.loopexit97, %31
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %.loopexit97 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %28 unwind label %35

28:                                               ; preds = %.lr.ph
  %29 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %10, i64 %indvars.iv
  %30 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %31 unwind label %35

31:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !9

35:                                               ; preds = %28, %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %388

.preheader96:                                     ; preds = %._crit_edge, %55
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %55 ], [ 0, %._crit_edge ]
  %37 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %10, i64 %indvars.iv128
  br label %.preheader95

._crit_edge105:                                   ; preds = %55, %._crit_edge.._crit_edge105_crit_edge
  %38 = phi ptr [ %25, %._crit_edge.._crit_edge105_crit_edge ], [ %23, %55 ]
  %.pre-phi = phi i64 [ %.pre149, %._crit_edge.._crit_edge105_crit_edge ], [ %57, %55 ]
  %.lcssa = phi i32 [ %26, %._crit_edge.._crit_edge105_crit_edge ], [ %56, %55 ]
  %39 = add nsw i32 %.lcssa, 1
  %40 = zext i32 %39 to i64
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  %43 = zext i32 %42 to i64
  %44 = mul nuw i64 %43, %40
  %45 = alloca i32, i64 %44, align 16
  %46 = mul nsw i64 %.pre-phi, %43
  %47 = getelementptr inbounds i32, ptr %45, i64 %46
  %48 = sext i32 %41 to i64
  %49 = getelementptr inbounds i32, ptr %47, i64 %48
  %50 = getelementptr inbounds i8, ptr %49, i64 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  store i8 0, ptr %4, align 1, !tbaa !11
  invoke void @_ZSt4fillIPibEvT_S1_RKT0_(ptr noundef nonnull %45, ptr noundef nonnull %50, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %176 unwind label %207

.preheader95:                                     ; preds = %.preheader96, %174
  %indvars.iv125 = phi i64 [ 0, %.preheader96 ], [ %indvars.iv.next126, %174 ]
  %51 = getelementptr inbounds [10 x %"class.std::__cxx11::basic_string"], ptr @_Z1dB5cxx11, i64 0, i64 %indvars.iv125
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 0)
  %53 = load i8, ptr %52, align 1, !tbaa !13
  %54 = icmp eq i8 %53, 49
  br i1 %54, label %59, label %63

55:                                               ; preds = %174
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %indvars.iv.next129, %57
  br i1 %58, label %.preheader96, label %._crit_edge105, !llvm.loop !14

59:                                               ; preds = %.preheader95
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 0)
  %61 = load i8, ptr %60, align 1, !tbaa !13
  %62 = icmp eq i8 %61, 48
  br i1 %62, label %174, label %63

63:                                               ; preds = %59, %.preheader95
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 0)
  %65 = load i8, ptr %64, align 1, !tbaa !13
  %66 = icmp eq i8 %65, 48
  br i1 %66, label %67, label %72

67:                                               ; preds = %63
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 0)
  %69 = load i8, ptr %68, align 1, !tbaa !13
  %70 = icmp eq i8 %69, 49
  %71 = zext i1 %70 to i32
  br label %72

72:                                               ; preds = %67, %63
  %.167 = phi i32 [ 0, %63 ], [ %71, %67 ]
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 1)
  %74 = load i8, ptr %73, align 1, !tbaa !13
  %75 = icmp eq i8 %74, 49
  br i1 %75, label %76, label %80

76:                                               ; preds = %72
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 1)
  %78 = load i8, ptr %77, align 1, !tbaa !13
  %79 = icmp eq i8 %78, 48
  br i1 %79, label %174, label %80

80:                                               ; preds = %76, %72
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 1)
  %82 = load i8, ptr %81, align 1, !tbaa !13
  %83 = icmp eq i8 %82, 48
  br i1 %83, label %84, label %89

84:                                               ; preds = %80
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 1)
  %86 = load i8, ptr %85, align 1, !tbaa !13
  %87 = icmp eq i8 %86, 49
  %88 = zext i1 %87 to i32
  %spec.select.1 = add nuw nsw i32 %.167, %88
  br label %89

89:                                               ; preds = %84, %80
  %.167.1 = phi i32 [ %.167, %80 ], [ %spec.select.1, %84 ]
  %90 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 2)
  %91 = load i8, ptr %90, align 1, !tbaa !13
  %92 = icmp eq i8 %91, 49
  br i1 %92, label %93, label %97

93:                                               ; preds = %89
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 2)
  %95 = load i8, ptr %94, align 1, !tbaa !13
  %96 = icmp eq i8 %95, 48
  br i1 %96, label %174, label %97

97:                                               ; preds = %93, %89
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 2)
  %99 = load i8, ptr %98, align 1, !tbaa !13
  %100 = icmp eq i8 %99, 48
  br i1 %100, label %101, label %106

101:                                              ; preds = %97
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 2)
  %103 = load i8, ptr %102, align 1, !tbaa !13
  %104 = icmp eq i8 %103, 49
  %105 = zext i1 %104 to i32
  %spec.select.2 = add nuw nsw i32 %.167.1, %105
  br label %106

106:                                              ; preds = %101, %97
  %.167.2 = phi i32 [ %.167.1, %97 ], [ %spec.select.2, %101 ]
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 3)
  %108 = load i8, ptr %107, align 1, !tbaa !13
  %109 = icmp eq i8 %108, 49
  br i1 %109, label %110, label %114

110:                                              ; preds = %106
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 3)
  %112 = load i8, ptr %111, align 1, !tbaa !13
  %113 = icmp eq i8 %112, 48
  br i1 %113, label %174, label %114

114:                                              ; preds = %110, %106
  %115 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 3)
  %116 = load i8, ptr %115, align 1, !tbaa !13
  %117 = icmp eq i8 %116, 48
  br i1 %117, label %118, label %123

118:                                              ; preds = %114
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 3)
  %120 = load i8, ptr %119, align 1, !tbaa !13
  %121 = icmp eq i8 %120, 49
  %122 = zext i1 %121 to i32
  %spec.select.3 = add nuw nsw i32 %.167.2, %122
  br label %123

123:                                              ; preds = %118, %114
  %.167.3 = phi i32 [ %.167.2, %114 ], [ %spec.select.3, %118 ]
  %124 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 4)
  %125 = load i8, ptr %124, align 1, !tbaa !13
  %126 = icmp eq i8 %125, 49
  br i1 %126, label %127, label %131

127:                                              ; preds = %123
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 4)
  %129 = load i8, ptr %128, align 1, !tbaa !13
  %130 = icmp eq i8 %129, 48
  br i1 %130, label %174, label %131

131:                                              ; preds = %127, %123
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 4)
  %133 = load i8, ptr %132, align 1, !tbaa !13
  %134 = icmp eq i8 %133, 48
  br i1 %134, label %135, label %140

135:                                              ; preds = %131
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 4)
  %137 = load i8, ptr %136, align 1, !tbaa !13
  %138 = icmp eq i8 %137, 49
  %139 = zext i1 %138 to i32
  %spec.select.4 = add nuw nsw i32 %.167.3, %139
  br label %140

140:                                              ; preds = %135, %131
  %.167.4 = phi i32 [ %.167.3, %131 ], [ %spec.select.4, %135 ]
  %141 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 5)
  %142 = load i8, ptr %141, align 1, !tbaa !13
  %143 = icmp eq i8 %142, 49
  br i1 %143, label %144, label %148

144:                                              ; preds = %140
  %145 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 5)
  %146 = load i8, ptr %145, align 1, !tbaa !13
  %147 = icmp eq i8 %146, 48
  br i1 %147, label %174, label %148

148:                                              ; preds = %144, %140
  %149 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 5)
  %150 = load i8, ptr %149, align 1, !tbaa !13
  %151 = icmp eq i8 %150, 48
  br i1 %151, label %152, label %157

152:                                              ; preds = %148
  %153 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 5)
  %154 = load i8, ptr %153, align 1, !tbaa !13
  %155 = icmp eq i8 %154, 49
  %156 = zext i1 %155 to i32
  %spec.select.5 = add nuw nsw i32 %.167.4, %156
  br label %157

157:                                              ; preds = %152, %148
  %.167.5 = phi i32 [ %.167.4, %148 ], [ %spec.select.5, %152 ]
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 6)
  %159 = load i8, ptr %158, align 1, !tbaa !13
  %160 = icmp eq i8 %159, 49
  br i1 %160, label %161, label %165

161:                                              ; preds = %157
  %162 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 6)
  %163 = load i8, ptr %162, align 1, !tbaa !13
  %164 = icmp eq i8 %163, 48
  br i1 %164, label %174, label %165

165:                                              ; preds = %161, %157
  %166 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef 6)
  %167 = load i8, ptr %166, align 1, !tbaa !13
  %168 = icmp eq i8 %167, 48
  br i1 %168, label %169, label %174

169:                                              ; preds = %165
  %170 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 6)
  %171 = load i8, ptr %170, align 1, !tbaa !13
  %172 = icmp eq i8 %171, 49
  %173 = zext i1 %172 to i32
  %spec.select.6 = add nuw nsw i32 %.167.5, %173
  br label %174

174:                                              ; preds = %165, %169, %161, %144, %127, %110, %93, %76, %59
  %.2 = phi i32 [ -1, %59 ], [ -1, %76 ], [ -1, %93 ], [ -1, %110 ], [ -1, %127 ], [ -1, %144 ], [ -1, %161 ], [ %.167.5, %165 ], [ %spec.select.6, %169 ]
  %175 = getelementptr inbounds [10 x i32], ptr %23, i64 %indvars.iv128, i64 %indvars.iv125
  store i32 %.2, ptr %175, align 4, !tbaa !5
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next126, 10
  br i1 %exitcond.not, label %55, label %.preheader95, !llvm.loop !15

176:                                              ; preds = %._crit_edge105
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  %177 = load i32, ptr %1, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = mul nsw i64 %178, %43
  %180 = getelementptr inbounds i32, ptr %45, i64 %179
  store i32 1, ptr %180, align 4, !tbaa !5
  %181 = icmp sgt i32 %177, 0
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br i1 %181, label %.preheader94.lr.ph, label %._crit_edge113.thread

.preheader94.lr.ph:                               ; preds = %176
  %.not82108 = icmp slt i32 %.pre, 0
  br i1 %.not82108, label %._crit_edge113.thread151, label %.preheader94.preheader

.preheader94.preheader:                           ; preds = %.preheader94.lr.ph
  %182 = add nuw i32 %.pre, 1
  %183 = zext nneg i32 %177 to i64
  %wide.trip.count = zext i32 %182 to i64
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader94.preheader, %._crit_edge111
  %indvars.iv139 = phi i64 [ %183, %.preheader94.preheader ], [ %indvars.iv.next140, %._crit_edge111 ]
  %184 = mul nuw nsw i64 %indvars.iv139, %43
  %185 = getelementptr inbounds i32, ptr %45, i64 %184
  %indvars.iv.next140 = add nsw i64 %indvars.iv139, -1
  %186 = mul nuw nsw i64 %indvars.iv.next140, %43
  %187 = getelementptr inbounds i32, ptr %45, i64 %186
  %188 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 0
  %189 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 1
  %190 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 2
  %191 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 3
  %192 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 4
  %193 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 5
  %194 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 6
  %195 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 7
  %196 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 8
  %197 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv.next140, i64 9
  br label %210

._crit_edge113:                                   ; preds = %._crit_edge111
  %198 = zext nneg i32 %.pre to i64
  %199 = getelementptr inbounds i32, ptr %45, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %.not = icmp eq i32 %200, 0
  br i1 %.not, label %283, label %.preheader91

._crit_edge113.thread151:                         ; preds = %.preheader94.lr.ph
  %201 = sext i32 %.pre to i64
  %202 = getelementptr inbounds i32, ptr %45, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %.not152 = icmp eq i32 %203, 0
  br i1 %.not152, label %283, label %.preheader90.preheader

._crit_edge113.thread:                            ; preds = %176
  %204 = sext i32 %.pre to i64
  %205 = getelementptr inbounds i32, ptr %45, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %.not150 = icmp eq i32 %206, 0
  br i1 %.not150, label %283, label %._crit_edge117.invoke

.preheader91:                                     ; preds = %._crit_edge113
  br i1 %181, label %.preheader90.preheader, label %._crit_edge117.invoke

.preheader90.preheader:                           ; preds = %._crit_edge113.thread151, %.preheader91
  br label %.preheader90

207:                                              ; preds = %._crit_edge105
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %388

._crit_edge111:                                   ; preds = %.loopexit93
  %209 = icmp sgt i64 %indvars.iv139, 1
  br i1 %209, label %.preheader94, label %._crit_edge113, !llvm.loop !16

210:                                              ; preds = %.preheader94, %.loopexit93
  %indvars.iv135 = phi i64 [ 0, %.preheader94 ], [ %indvars.iv.next136, %.loopexit93 ]
  %211 = getelementptr inbounds i32, ptr %185, i64 %indvars.iv135
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %.not83 = icmp eq i32 %212, 0
  br i1 %.not83, label %.loopexit93, label %.preheader92.preheader

.preheader92.preheader:                           ; preds = %210
  %213 = load i32, ptr %188, align 4, !tbaa !5
  %.not84 = icmp eq i32 %213, -1
  br i1 %.not84, label %.preheader92.1, label %214

214:                                              ; preds = %.preheader92.preheader
  %215 = trunc nuw nsw i64 %indvars.iv135 to i32
  %216 = add nsw i32 %213, %215
  %.not85 = icmp sgt i32 %216, %.pre
  br i1 %.not85, label %.preheader92.1, label %217

217:                                              ; preds = %214
  %218 = sext i32 %216 to i64
  %219 = getelementptr inbounds i32, ptr %187, i64 %218
  store i32 1, ptr %219, align 4, !tbaa !5
  br label %.preheader92.1

.preheader92.1:                                   ; preds = %217, %214, %.preheader92.preheader
  %220 = load i32, ptr %189, align 4, !tbaa !5
  %.not84.1 = icmp eq i32 %220, -1
  br i1 %.not84.1, label %.preheader92.2, label %221

221:                                              ; preds = %.preheader92.1
  %222 = trunc nuw nsw i64 %indvars.iv135 to i32
  %223 = add nsw i32 %220, %222
  %.not85.1 = icmp sgt i32 %223, %.pre
  br i1 %.not85.1, label %.preheader92.2, label %224

224:                                              ; preds = %221
  %225 = sext i32 %223 to i64
  %226 = getelementptr inbounds i32, ptr %187, i64 %225
  store i32 1, ptr %226, align 4, !tbaa !5
  br label %.preheader92.2

.preheader92.2:                                   ; preds = %224, %221, %.preheader92.1
  %227 = load i32, ptr %190, align 4, !tbaa !5
  %.not84.2 = icmp eq i32 %227, -1
  br i1 %.not84.2, label %.preheader92.3, label %228

228:                                              ; preds = %.preheader92.2
  %229 = trunc nuw nsw i64 %indvars.iv135 to i32
  %230 = add nsw i32 %227, %229
  %.not85.2 = icmp sgt i32 %230, %.pre
  br i1 %.not85.2, label %.preheader92.3, label %231

231:                                              ; preds = %228
  %232 = sext i32 %230 to i64
  %233 = getelementptr inbounds i32, ptr %187, i64 %232
  store i32 1, ptr %233, align 4, !tbaa !5
  br label %.preheader92.3

.preheader92.3:                                   ; preds = %231, %228, %.preheader92.2
  %234 = load i32, ptr %191, align 4, !tbaa !5
  %.not84.3 = icmp eq i32 %234, -1
  br i1 %.not84.3, label %.preheader92.4, label %235

235:                                              ; preds = %.preheader92.3
  %236 = trunc nuw nsw i64 %indvars.iv135 to i32
  %237 = add nsw i32 %234, %236
  %.not85.3 = icmp sgt i32 %237, %.pre
  br i1 %.not85.3, label %.preheader92.4, label %238

238:                                              ; preds = %235
  %239 = sext i32 %237 to i64
  %240 = getelementptr inbounds i32, ptr %187, i64 %239
  store i32 1, ptr %240, align 4, !tbaa !5
  br label %.preheader92.4

.preheader92.4:                                   ; preds = %238, %235, %.preheader92.3
  %241 = load i32, ptr %192, align 4, !tbaa !5
  %.not84.4 = icmp eq i32 %241, -1
  br i1 %.not84.4, label %.preheader92.5, label %242

242:                                              ; preds = %.preheader92.4
  %243 = trunc nuw nsw i64 %indvars.iv135 to i32
  %244 = add nsw i32 %241, %243
  %.not85.4 = icmp sgt i32 %244, %.pre
  br i1 %.not85.4, label %.preheader92.5, label %245

245:                                              ; preds = %242
  %246 = sext i32 %244 to i64
  %247 = getelementptr inbounds i32, ptr %187, i64 %246
  store i32 1, ptr %247, align 4, !tbaa !5
  br label %.preheader92.5

.preheader92.5:                                   ; preds = %245, %242, %.preheader92.4
  %248 = load i32, ptr %193, align 4, !tbaa !5
  %.not84.5 = icmp eq i32 %248, -1
  br i1 %.not84.5, label %.preheader92.6, label %249

249:                                              ; preds = %.preheader92.5
  %250 = trunc nuw nsw i64 %indvars.iv135 to i32
  %251 = add nsw i32 %248, %250
  %.not85.5 = icmp sgt i32 %251, %.pre
  br i1 %.not85.5, label %.preheader92.6, label %252

252:                                              ; preds = %249
  %253 = sext i32 %251 to i64
  %254 = getelementptr inbounds i32, ptr %187, i64 %253
  store i32 1, ptr %254, align 4, !tbaa !5
  br label %.preheader92.6

.preheader92.6:                                   ; preds = %252, %249, %.preheader92.5
  %255 = load i32, ptr %194, align 4, !tbaa !5
  %.not84.6 = icmp eq i32 %255, -1
  br i1 %.not84.6, label %.preheader92.7, label %256

256:                                              ; preds = %.preheader92.6
  %257 = trunc nuw nsw i64 %indvars.iv135 to i32
  %258 = add nsw i32 %255, %257
  %.not85.6 = icmp sgt i32 %258, %.pre
  br i1 %.not85.6, label %.preheader92.7, label %259

259:                                              ; preds = %256
  %260 = sext i32 %258 to i64
  %261 = getelementptr inbounds i32, ptr %187, i64 %260
  store i32 1, ptr %261, align 4, !tbaa !5
  br label %.preheader92.7

.preheader92.7:                                   ; preds = %259, %256, %.preheader92.6
  %262 = load i32, ptr %195, align 4, !tbaa !5
  %.not84.7 = icmp eq i32 %262, -1
  br i1 %.not84.7, label %.preheader92.8, label %263

263:                                              ; preds = %.preheader92.7
  %264 = trunc nuw nsw i64 %indvars.iv135 to i32
  %265 = add nsw i32 %262, %264
  %.not85.7 = icmp sgt i32 %265, %.pre
  br i1 %.not85.7, label %.preheader92.8, label %266

266:                                              ; preds = %263
  %267 = sext i32 %265 to i64
  %268 = getelementptr inbounds i32, ptr %187, i64 %267
  store i32 1, ptr %268, align 4, !tbaa !5
  br label %.preheader92.8

.preheader92.8:                                   ; preds = %266, %263, %.preheader92.7
  %269 = load i32, ptr %196, align 4, !tbaa !5
  %.not84.8 = icmp eq i32 %269, -1
  br i1 %.not84.8, label %.preheader92.9, label %270

270:                                              ; preds = %.preheader92.8
  %271 = trunc nuw nsw i64 %indvars.iv135 to i32
  %272 = add nsw i32 %269, %271
  %.not85.8 = icmp sgt i32 %272, %.pre
  br i1 %.not85.8, label %.preheader92.9, label %273

273:                                              ; preds = %270
  %274 = sext i32 %272 to i64
  %275 = getelementptr inbounds i32, ptr %187, i64 %274
  store i32 1, ptr %275, align 4, !tbaa !5
  br label %.preheader92.9

.preheader92.9:                                   ; preds = %273, %270, %.preheader92.8
  %276 = load i32, ptr %197, align 4, !tbaa !5
  %.not84.9 = icmp eq i32 %276, -1
  br i1 %.not84.9, label %.loopexit93, label %277

277:                                              ; preds = %.preheader92.9
  %278 = trunc nuw nsw i64 %indvars.iv135 to i32
  %279 = add nsw i32 %276, %278
  %.not85.9 = icmp sgt i32 %279, %.pre
  br i1 %.not85.9, label %.loopexit93, label %280

280:                                              ; preds = %277
  %281 = sext i32 %279 to i64
  %282 = getelementptr inbounds i32, ptr %187, i64 %281
  store i32 1, ptr %282, align 4, !tbaa !5
  br label %.loopexit93

.loopexit93:                                      ; preds = %.preheader92.9, %277, %280, %210
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond138.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count
  br i1 %exitcond138.not, label %._crit_edge111, label %210, !llvm.loop !17

283:                                              ; preds = %._crit_edge113.thread151, %._crit_edge113.thread, %._crit_edge113
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %._crit_edge117.invoke unwind label %285

285:                                              ; preds = %._crit_edge117.invoke, %283
  %286 = landingpad { ptr, i32 }
          cleanup
  br label %388

.preheader90:                                     ; preds = %.preheader90.preheader, %377
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %377 ], [ 0, %.preheader90.preheader ]
  %287 = load i32, ptr %2, align 4, !tbaa !5
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %288 = mul nuw nsw i64 %indvars.iv.next147, %43
  %289 = getelementptr inbounds i32, ptr %45, i64 %288
  %290 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 0
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %.not79 = icmp sgt i32 %291, %287
  %.not80 = icmp eq i32 %291, -1
  %or.cond = or i1 %.not80, %.not79
  br i1 %or.cond, label %299, label %294

._crit_edge117.invoke:                            ; preds = %377, %283, %.preheader91, %._crit_edge113.thread
  %292 = phi ptr [ @_ZSt4cout, %._crit_edge113.thread ], [ @_ZSt4cout, %.preheader91 ], [ %284, %283 ], [ @_ZSt4cout, %377 ]
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %292, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %383 unwind label %285

294:                                              ; preds = %.preheader90
  %295 = sub nsw i32 %287, %291
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds i32, ptr %289, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !5
  %.not81 = icmp eq i32 %298, 0
  %spec.select87 = sext i1 %.not81 to i32
  br label %299

299:                                              ; preds = %294, %.preheader90
  %.1 = phi i32 [ -1, %.preheader90 ], [ %spec.select87, %294 ]
  %300 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 1
  %301 = load i32, ptr %300, align 4, !tbaa !5
  %.not79.1 = icmp sgt i32 %301, %287
  %.not80.1 = icmp eq i32 %301, -1
  %or.cond.1 = or i1 %.not80.1, %.not79.1
  br i1 %or.cond.1, label %307, label %302

302:                                              ; preds = %299
  %303 = sub nsw i32 %287, %301
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds i32, ptr %289, i64 %304
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %.not81.1 = icmp eq i32 %306, 0
  %spec.select87.1 = select i1 %.not81.1, i32 %.1, i32 1
  br label %307

307:                                              ; preds = %302, %299
  %.1.1 = phi i32 [ %.1, %299 ], [ %spec.select87.1, %302 ]
  %308 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 2
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %.not79.2 = icmp sgt i32 %309, %287
  %.not80.2 = icmp eq i32 %309, -1
  %or.cond.2 = or i1 %.not80.2, %.not79.2
  br i1 %or.cond.2, label %315, label %310

310:                                              ; preds = %307
  %311 = sub nsw i32 %287, %309
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds i32, ptr %289, i64 %312
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %.not81.2 = icmp eq i32 %314, 0
  %spec.select87.2 = select i1 %.not81.2, i32 %.1.1, i32 2
  br label %315

315:                                              ; preds = %310, %307
  %.1.2 = phi i32 [ %.1.1, %307 ], [ %spec.select87.2, %310 ]
  %316 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 3
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %.not79.3 = icmp sgt i32 %317, %287
  %.not80.3 = icmp eq i32 %317, -1
  %or.cond.3 = or i1 %.not80.3, %.not79.3
  br i1 %or.cond.3, label %323, label %318

318:                                              ; preds = %315
  %319 = sub nsw i32 %287, %317
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds i32, ptr %289, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %.not81.3 = icmp eq i32 %322, 0
  %spec.select87.3 = select i1 %.not81.3, i32 %.1.2, i32 3
  br label %323

323:                                              ; preds = %318, %315
  %.1.3 = phi i32 [ %.1.2, %315 ], [ %spec.select87.3, %318 ]
  %324 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 4
  %325 = load i32, ptr %324, align 4, !tbaa !5
  %.not79.4 = icmp sgt i32 %325, %287
  %.not80.4 = icmp eq i32 %325, -1
  %or.cond.4 = or i1 %.not80.4, %.not79.4
  br i1 %or.cond.4, label %331, label %326

326:                                              ; preds = %323
  %327 = sub nsw i32 %287, %325
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds i32, ptr %289, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %.not81.4 = icmp eq i32 %330, 0
  %spec.select87.4 = select i1 %.not81.4, i32 %.1.3, i32 4
  br label %331

331:                                              ; preds = %326, %323
  %.1.4 = phi i32 [ %.1.3, %323 ], [ %spec.select87.4, %326 ]
  %332 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 5
  %333 = load i32, ptr %332, align 4, !tbaa !5
  %.not79.5 = icmp sgt i32 %333, %287
  %.not80.5 = icmp eq i32 %333, -1
  %or.cond.5 = or i1 %.not80.5, %.not79.5
  br i1 %or.cond.5, label %339, label %334

334:                                              ; preds = %331
  %335 = sub nsw i32 %287, %333
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds i32, ptr %289, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %.not81.5 = icmp eq i32 %338, 0
  %spec.select87.5 = select i1 %.not81.5, i32 %.1.4, i32 5
  br label %339

339:                                              ; preds = %334, %331
  %.1.5 = phi i32 [ %.1.4, %331 ], [ %spec.select87.5, %334 ]
  %340 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 6
  %341 = load i32, ptr %340, align 4, !tbaa !5
  %.not79.6 = icmp sgt i32 %341, %287
  %.not80.6 = icmp eq i32 %341, -1
  %or.cond.6 = or i1 %.not80.6, %.not79.6
  br i1 %or.cond.6, label %347, label %342

342:                                              ; preds = %339
  %343 = sub nsw i32 %287, %341
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds i32, ptr %289, i64 %344
  %346 = load i32, ptr %345, align 4, !tbaa !5
  %.not81.6 = icmp eq i32 %346, 0
  %spec.select87.6 = select i1 %.not81.6, i32 %.1.5, i32 6
  br label %347

347:                                              ; preds = %342, %339
  %.1.6 = phi i32 [ %.1.5, %339 ], [ %spec.select87.6, %342 ]
  %348 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 7
  %349 = load i32, ptr %348, align 4, !tbaa !5
  %.not79.7 = icmp sgt i32 %349, %287
  %.not80.7 = icmp eq i32 %349, -1
  %or.cond.7 = or i1 %.not80.7, %.not79.7
  br i1 %or.cond.7, label %355, label %350

350:                                              ; preds = %347
  %351 = sub nsw i32 %287, %349
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds i32, ptr %289, i64 %352
  %354 = load i32, ptr %353, align 4, !tbaa !5
  %.not81.7 = icmp eq i32 %354, 0
  %spec.select87.7 = select i1 %.not81.7, i32 %.1.6, i32 7
  br label %355

355:                                              ; preds = %350, %347
  %.1.7 = phi i32 [ %.1.6, %347 ], [ %spec.select87.7, %350 ]
  %356 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 8
  %357 = load i32, ptr %356, align 4, !tbaa !5
  %.not79.8 = icmp sgt i32 %357, %287
  %.not80.8 = icmp eq i32 %357, -1
  %or.cond.8 = or i1 %.not80.8, %.not79.8
  br i1 %or.cond.8, label %363, label %358

358:                                              ; preds = %355
  %359 = sub nsw i32 %287, %357
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds i32, ptr %289, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !5
  %.not81.8 = icmp eq i32 %362, 0
  %spec.select87.8 = select i1 %.not81.8, i32 %.1.7, i32 8
  br label %363

363:                                              ; preds = %358, %355
  %.1.8 = phi i32 [ %.1.7, %355 ], [ %spec.select87.8, %358 ]
  %364 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 9
  %365 = load i32, ptr %364, align 4, !tbaa !5
  %.not79.9 = icmp sgt i32 %365, %287
  %.not80.9 = icmp eq i32 %365, -1
  %or.cond.9 = or i1 %.not80.9, %.not79.9
  br i1 %or.cond.9, label %371, label %366

366:                                              ; preds = %363
  %367 = sub nsw i32 %287, %365
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds i32, ptr %289, i64 %368
  %370 = load i32, ptr %369, align 4, !tbaa !5
  %.not81.9 = icmp eq i32 %370, 0
  %spec.select87.9 = select i1 %.not81.9, i32 %.1.8, i32 9
  br label %371

371:                                              ; preds = %366, %363
  %.1.9 = phi i32 [ %.1.8, %363 ], [ %spec.select87.9, %366 ]
  %372 = sext i32 %.1.9 to i64
  %373 = getelementptr inbounds [10 x i32], ptr %38, i64 %indvars.iv146, i64 %372
  %374 = load i32, ptr %373, align 4, !tbaa !5
  %375 = sub nsw i32 %287, %374
  store i32 %375, ptr %2, align 4, !tbaa !5
  %376 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.1.9)
          to label %377 unwind label %381

377:                                              ; preds = %371
  %378 = load i32, ptr %1, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = icmp slt i64 %indvars.iv.next147, %379
  br i1 %380, label %.preheader90, label %._crit_edge117.invoke, !llvm.loop !18

381:                                              ; preds = %371
  %382 = landingpad { ptr, i32 }
          cleanup
  br label %388

383:                                              ; preds = %._crit_edge117.invoke
  br i1 %11, label %.loopexit89, label %.preheader88.preheader

.preheader88.preheader:                           ; preds = %383
  %384 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %10, i64 %8
  br label %.preheader88

.preheader88:                                     ; preds = %.preheader88.preheader, %.preheader88
  %385 = phi ptr [ %386, %.preheader88 ], [ %384, %.preheader88.preheader ]
  %386 = getelementptr inbounds i8, ptr %385, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %386) #7
  %387 = icmp eq ptr %386, %10
  br i1 %387, label %.loopexit89, label %.preheader88

.loopexit89:                                      ; preds = %.preheader88, %383
  call void @llvm.stackrestore.p0(ptr %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

388:                                              ; preds = %381, %285, %207, %35
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %382, %381 ], [ %286, %285 ], [ %208, %207 ]
  br i1 %11, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %388
  %389 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %10, i64 %8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %390 = phi ptr [ %391, %.preheader ], [ %389, %.preheader.preheader ]
  %391 = getelementptr inbounds i8, ptr %390, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %391) #7
  %392 = icmp eq ptr %391, %10
  br i1 %392, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %388
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPibEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress norecurse 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 #6 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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